From d95e9806bf13388d0e74fdd18dde8086b93108ad Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Jun 2023 11:13:43 -0500 Subject: [PATCH] fix: light state sometimes flip-flips --- components/ratgdo/ratgdo.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 26c5433..acd3d22 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -432,9 +432,6 @@ namespace ratgdo { return; } toggleLight(); - // We don't always get the state back so be optimistic - this->previousLightState = this->lightState; - this->lightState = LightState::LIGHT_STATE_ON; } void RATGDOComponent::lightOff() @@ -444,9 +441,6 @@ namespace ratgdo { return; } toggleLight(); - // We don't always get the state back so be optimistic - this->previousLightState = this->lightState; - this->lightState = LightState::LIGHT_STATE_OFF; } void RATGDOComponent::toggleLight()