mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
The compiler does not trust its own operator precedence.
This commit is contained in:
parent
74d6929099
commit
c30bc43288
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ void DeepSleepComponent::set_sleep_duration(uint32_t time_ms) { this->sleep_dura
|
||||||
void DeepSleepComponent::set_run_duration(uint32_t time_ms) { this->run_duration_ = time_ms; }
|
void DeepSleepComponent::set_run_duration(uint32_t time_ms) { this->run_duration_ = time_ms; }
|
||||||
|
|
||||||
void DeepSleepComponent::begin_sleep(bool manual) {
|
void DeepSleepComponent::begin_sleep(bool manual) {
|
||||||
if (this->prevent_ && !manual || this->guard_) {
|
if ((this->prevent_ && !manual) || this->guard_) {
|
||||||
this->next_enter_deep_sleep_ = true;
|
this->next_enter_deep_sleep_ = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue