This commit is contained in:
J. Nick Koston 2023-06-09 18:05:29 -05:00
parent 9cd1eb6704
commit 04fa7e8145
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +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 = byte1 == 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);