mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 07:24:54 +01:00
don't reference timer_running_ directly
This commit is contained in:
parent
71f9d0ccb6
commit
aad5b46f82
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ void HBridgeSwitch::dump_config() {
|
||||||
|
|
||||||
void HBridgeSwitch::write_state(bool state) {
|
void HBridgeSwitch::write_state(bool state) {
|
||||||
this->desired_state_ = state;
|
this->desired_state_ = state;
|
||||||
if (!timer_running_)
|
if (!this->timer_running_)
|
||||||
this->timer_fn_();
|
this->timer_fn_();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue