mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-07 22:03:20 +00:00
button
This commit is contained in:
parent
1bf07caf3a
commit
378cf48a35
@ -112,8 +112,7 @@ namespace ratgdo {
|
||||
} else if (cmd == 0x284) {
|
||||
motor = 1;
|
||||
} else if (cmd == 0x280) {
|
||||
button = bytes1 == 1
|
||||
ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released");
|
||||
button = bytes1 == 1 ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released");
|
||||
} else if (cmd == 0x48c) {
|
||||
openings = (byte1 << 8) | byte2;
|
||||
ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user