This commit is contained in:
J. Nick Koston 2023-06-09 18:06:43 -05:00
parent 8815a429b6
commit 2737134735
No known key found for this signature in database
2 changed files with 20 additions and 2 deletions

View File

@ -261,7 +261,16 @@ namespace ratgdo {
byteCount = 0; byteCount = 0;
isStatus = false; 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_) { if (isStatus && this->forceUpdate_) {
this->forceUpdate_ = false; this->forceUpdate_ = false;
this->previousDoorState = DoorState::DOOR_STATE_UNKNOWN; this->previousDoorState = DoorState::DOOR_STATE_UNKNOWN;

View File

@ -143,7 +143,16 @@ namespace ratgdo {
void getRollingCode(cmd command); void getRollingCode(cmd command);
void gdoStateLoop(); void gdoStateLoop();
void statusUpdateLoop(); 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 incrementRollingCodeCounter();
void sendRollingCodeChanged(); void sendRollingCodeChanged();
void setRollingCodeCounter(uint32_t counter); void setRollingCodeCounter(uint32_t counter);