This commit is contained in:
J. Nick Koston 2023-06-05 13:49:40 -05:00
parent 44f317b983
commit 3fddba95d4
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ void RATGDOComponent::sync() {
transmit(this->rollingCode, CODE_LENGTH);
delay(45);
writeCounterToFlash();
this->pref_.save(&this->rollingCodeCounter);
}
void RATGDOComponent::openDoor() {
@ -417,7 +417,7 @@ void RATGDOComponent::openDoor() {
getRollingCode("door2");
transmit(this->rollingCode, CODE_LENGTH);
writeCounterToFlash();
this->pref_.save(&this->rollingCodeCounter);
} else {
for (int i = 0; i < 4; i++) {
ESP_LOGD(TAG, "sync_code[%d]", i);