From bb9eddf973d2b0a1ec95f0632fd53870c9ee1d68 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:00:09 -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 fdf911e..e39e6b1 100644 --- a/components/ratgdo/switch/ratgdo_switch.cpp +++ b/components/ratgdo/switch/ratgdo_switch.cpp @@ -23,9 +23,9 @@ namespace ratgdo { { ESP_LOGD(TAG, "name: %s this->type_:%d state: %d", this->get_name(), this->switch_type_, state); if (state) { - this->parent_->lock(value); + this->parent_->lock(); } else { - this->parent_->unlock(value); + this->parent_->unlock(); } }