This commit is contained in:
J. Nick Koston 2023-06-09 18:38:31 -05:00
parent d02c49da00
commit 22651f9e15
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 {
this->motorState = MotorState::MOTOR_STATE_ON; this->motorState = MotorState::MOTOR_STATE_ON;
} else if (cmd == 0x280) { } else if (cmd == 0x280) {
this->buttonState = byte1 == 1 ? ButtonState::BUTTON_STATE_PRESSED : ButtonState::BUTTON_STATE_RELEASED; this->buttonState = byte1 == 1 ? ButtonState::BUTTON_STATE_PRESSED : ButtonState::BUTTON_STATE_RELEASED;
ESP_LOGD(TAG, "Pressed: %s", byte1 == 1 ? "pressed" : "released"); ESP_LOGD(TAG, "Pressed: %d", byte1 == 1);
} else if (cmd == 0x48c) { } else if (cmd == 0x48c) {
this->openings = (byte1 << 8) | byte2; this->openings = (byte1 << 8) | byte2;
ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2); ESP_LOGD(TAG, "Openings: %d", (byte1 << 8) | byte2);