Merge branch 'deep_sleep_loop' into integration

This commit is contained in:
J. Nick Koston 2025-07-05 16:12:06 -05:00
commit 77be414261
No known key found for this signature in database

View File

@ -75,11 +75,6 @@ bool DeepSleepComponent::prepare_to_sleep_() {
} }
return false; return false;
} }
// If we were monitoring and now can sleep, clean up
if (this->sleep_state_ == SLEEP_STATE_BLOCKED_BY_WAKEUP_PIN) {
this->cancel_interval("wakeup_pin_check");
this->sleep_state_ = SLEEP_STATE_ENTERING_SLEEP;
}
return true; return true;
} }