This commit is contained in:
J. Nick Koston 2023-06-05 16:38:57 -05:00
parent 7a732d9a25
commit 140fc01ee0
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -412,7 +412,7 @@ namespace ratgdo {
void RATGDOComponent::obstructionCleared() void RATGDOComponent::obstructionCleared()
{ {
if (this->doorIsObstructed) { if (this->store_.doorIsObstructed) {
this->store_.doorIsObstructed = false; this->store_.doorIsObstructed = false;
this->status_obst_pin_->digital_write(false); this->status_obst_pin_->digital_write(false);
ESP_LOGD(TAG, "Obstruction Cleared"); ESP_LOGD(TAG, "Obstruction Cleared");
@ -494,7 +494,7 @@ namespace ratgdo {
// opening/closing. by setting here, we can avoid // opening/closing. by setting here, we can avoid
// bouncing from rapidly repeated commands // bouncing from rapidly repeated commands
if (this->useRollingCodes) { if (this->useRollingCodes_) {
getRollingCode("door1"); getRollingCode("door1");
transmit(this->rollingCode, CODE_LENGTH); transmit(this->rollingCode, CODE_LENGTH);
@ -541,7 +541,7 @@ namespace ratgdo {
void RATGDOComponent::toggleLight() void RATGDOComponent::toggleLight()
{ {
if (this->useRollingCodes) { if (this->useRollingCodes_) {
getRollingCode("light"); getRollingCode("light");
transmit(this->rollingCode, CODE_LENGTH); transmit(this->rollingCode, CODE_LENGTH);
this->pref_.save(&this->rollingCodeCounter); this->pref_.save(&this->rollingCodeCounter);