From 00f6418345b40a1853fa29a2f88ae33c5d385bfd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:00:25 -0500 Subject: [PATCH] fix --- components/ratgdo/switch/ratgdo_switch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/switch/ratgdo_switch.cpp b/components/ratgdo/switch/ratgdo_switch.cpp index e39e6b1..128580c 100644 --- a/components/ratgdo/switch/ratgdo_switch.cpp +++ b/components/ratgdo/switch/ratgdo_switch.cpp @@ -16,8 +16,8 @@ namespace ratgdo { void RATGDOSwitch::on_lock_state(LockState state) { bool value = state == LockState::LOCK_STATE_LOCKED; - this->state(value); - this->publish_state(value); + this->state = value; + this->publish_state(); } void RATGDOSwitch::write_state(bool state) {