button
This commit is contained in:
parent
a792c4494f
commit
6c8e755bf8
|
@ -119,7 +119,7 @@ namespace ratgdo {
|
||||||
ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2);
|
ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2);
|
||||||
} else if (cmd == 0x285) {
|
} else if (cmd == 0x285) {
|
||||||
this->motionState = MotionState::MOTION_STATE_DETECTED; // toggle bit
|
this->motionState = MotionState::MOTION_STATE_DETECTED; // toggle bit
|
||||||
ESP_LOGD(TAG, "Motion: %d (toggle)", motion);
|
ESP_LOGD(TAG, "Motion: %d (toggle)", this->motionState);
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGD(TAG, "Unknown command: %04x", cmd);
|
ESP_LOGD(TAG, "Unknown command: %04x", cmd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue