button
This commit is contained in:
parent
8815a429b6
commit
2737134735
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue