add sync button

This commit is contained in:
J. Nick Koston 2023-06-07 18:46:13 -05:00
parent 6e9a224e1d
commit 220c440245
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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_;