diff --git a/components/ratgdo/button/ratgdo_button.cpp b/components/ratgdo/button/ratgdo_button.cpp index d780e9b..aed0652 100644 --- a/components/ratgdo/button/ratgdo_button.cpp +++ b/components/ratgdo/button/ratgdo_button.cpp @@ -13,7 +13,7 @@ namespace ratgdo { ESP_LOGCONFIG(TAG, " Type: Sync"); } - void RATGDOButton::control(float value) + void RATGDOButton::press_action() { ESP_LOGD(TAG, "name: %s this->type_:%d", this->get_name(), this->button_type_); this->parent_->sync(); diff --git a/components/ratgdo/button/ratgdo_button.h b/components/ratgdo/button/ratgdo_button.h index ed3dbe9..41f60cd 100644 --- a/components/ratgdo/button/ratgdo_button.h +++ b/components/ratgdo/button/ratgdo_button.h @@ -18,7 +18,7 @@ namespace ratgdo { void dump_config() override; void set_button_type(ButtonType button_type_) { this->button_type_ = button_type_; } - void control() override; + void press_action() override; protected: ButtonType button_type_;