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(); } }