button
This commit is contained in:
parent
13f85e33e1
commit
a792c4494f
|
@ -102,7 +102,7 @@ namespace ratgdo {
|
||||||
this->motionState = MotionState::MOTION_STATE_CLEAR; // when the status message is read, reset motion state to 0|clear
|
this->motionState = MotionState::MOTION_STATE_CLEAR; // when the status message is read, reset motion state to 0|clear
|
||||||
this->motorState = MotorState::MOTOR_STATE_OFF; // when the status message is read, reset motor state to 0|off
|
this->motorState = MotorState::MOTOR_STATE_OFF; // when the status message is read, reset motor state to 0|off
|
||||||
// obstruction = (byte1 >> 6) & 1; // unreliable due to the time it takes to register an obstruction
|
// obstruction = (byte1 >> 6) & 1; // unreliable due to the time it takes to register an obstruction
|
||||||
ESP_LOGD(TAG, "Door: %d Light: %d Lock: %d Motion: %d Obstruction: %d", door, light, lock, motion, obstruction);
|
ESP_LOGD(TAG, "Door: %d Light: %d Lock: %dd", this->doorState, this->lightState, this->lockState);
|
||||||
|
|
||||||
} else if (cmd == 0x281) {
|
} else if (cmd == 0x281) {
|
||||||
this->lightState ^= 1; // toggle bit
|
this->lightState ^= 1; // toggle bit
|
||||||
|
|
Loading…
Reference in New Issue