This commit is contained in:
J. Nick Koston 2023-06-05 13:50:34 -05:00
parent c4b628456f
commit 799c1ee9c9
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ void RATGDOComponent::closeDoor() {
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);
@ -462,7 +462,7 @@ void RATGDOComponent::toggleLight() {
if (this->useRollingCodes) {
getRollingCode("light");
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);