From e1167051fff213f8c35c4af7d5038c6c614307b0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 5 Jun 2023 18:40:59 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index cb102a7..9c69fe1 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -484,7 +484,7 @@ namespace ratgdo { } void RATGDOComponent::lightOn(){ - if(his->lightStates[this->store_.lightState] == "on"){ + if(this->lightStates[this->store_.lightState] == "on"){ ESP_LOGD(TAG, "already on"); }else{ toggleLight(); @@ -492,7 +492,7 @@ namespace ratgdo { } void RATGDOComponent::lightOff(){ - if(his->lightStates[this->store_.lightState] == "off"){ + if(this->lightStates[this->store_.lightState] == "off"){ ESP_LOGD(TAG, "already off"); }else{ toggleLight();