This commit is contained in:
J. Nick Koston 2023-06-09 14:44:53 -05:00
parent a80317ac88
commit 8d4d957618
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -316,10 +316,12 @@ namespace ratgdo {
this->rxRollingCode[byteCount] = serData;
byteCount++;
if (byteCount == 19) {
if (byteCount == CODE_LENGTH) {
reading = false;
msgStart = 0;
byteCount = 0;
isStatus = false;
readRollingCode(isStatus, this->doorState, this->lightState, this->lockState, this->motionState, this->obstructionState, this->motorState);
if (isStatus && this->forceUpdate_) {
this->forceUpdate_ = false;
@ -327,7 +329,6 @@ namespace ratgdo {
this->previousLightState = LightState::LIGHT_STATE_UNKNOWN;
this->previousLockState = LockState::LOCK_STATE_UNKNOWN;
}
isStatus = false;
}
}
}