diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index f49eef2..01aa4d3 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -261,7 +261,16 @@ namespace ratgdo { byteCount = 0; isStatus = false; - readRollingCode(isStatus, this->doorState, this->lightState, this->lockState, this->motionState, this->obstructionState, this->motorState, this->openings); + readRollingCode( + isStatus, + this->doorState, + this->lightState, + this->lockState, + this->motionState, + this->obstructionState, + this->motorState, + this->openings, + this->button); if (isStatus && this->forceUpdate_) { this->forceUpdate_ = false; this->previousDoorState = DoorState::DOOR_STATE_UNKNOWN; diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 792473c..7045624 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -143,7 +143,16 @@ namespace ratgdo { void getRollingCode(cmd command); void gdoStateLoop(); void statusUpdateLoop(); - void readRollingCode(bool& isStatus, uint8_t& door, uint8_t& light, uint8_t& lock, uint8_t& motion, uint8_t& obstruction, uint8_t& motor, uint16_t& openings, uint8_t& button); + void readRollingCode( + bool& isStatus, + uint8_t& door, + uint8_t& light, + uint8_t& lock, + uint8_t& motion, + uint8_t& obstruction, + uint8_t& motor, + uint16_t& openings, + uint8_t& button); void incrementRollingCodeCounter(); void sendRollingCodeChanged(); void setRollingCodeCounter(uint32_t counter);