add sync button
This commit is contained in:
parent
6e9a224e1d
commit
220c440245
|
@ -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();
|
||||
|
|
|
@ -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_;
|
||||
|
|
Loading…
Reference in New Issue