button
This commit is contained in:
parent
907f776716
commit
e9c110c1fe
|
@ -112,7 +112,7 @@ namespace ratgdo {
|
||||||
} else if (cmd == 0x284) {
|
} else if (cmd == 0x284) {
|
||||||
motor = 1;
|
motor = 1;
|
||||||
} else if (cmd == 0x280) {
|
} else if (cmd == 0x280) {
|
||||||
button = byte1 == 1;
|
button = byte1 == 1 ? ButtonState::BUTTON_STATE_PRESSED : ButtonState::BUTTON_STATE_RELEASED;
|
||||||
ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released");
|
ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released");
|
||||||
} else if (cmd == 0x48c) {
|
} else if (cmd == 0x48c) {
|
||||||
openings = (byte1 << 8) | byte2;
|
openings = (byte1 << 8) | byte2;
|
||||||
|
|
Loading…
Reference in New Issue