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