Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Oct 25, 2024
1 parent e3d2dba commit d587e00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ namespace esphome

Model model = string_to_model(value);
this->parent_->set_model(model);
this->parent_->pref_.save(&model);
this->parent_->get_pref().save(&model);
}

} // namespace tc_bus
Expand Down
4 changes: 4 additions & 0 deletions components/tc_bus/tc_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ namespace esphome

bool sending;

ESPPreferenceObject &get_pref() {
return this->pref_;
}

protected:
InternalGPIOPin *rx_pin_;
InternalGPIOPin *tx_pin_;
Expand Down

0 comments on commit d587e00

Please sign in to comment.