mirror of
https://github.com/esphome/esphome.git
synced 2026-10-05 10:31:29 +00:00
Reduce CPU overhead by allowing components to disable their loop() (#9089)
This commit is contained in:
@@ -42,6 +42,8 @@ void SafeModeComponent::loop() {
|
||||
ESP_LOGI(TAG, "Boot seems successful; resetting boot loop counter");
|
||||
this->clean_rtc();
|
||||
this->boot_successful_ = true;
|
||||
// Disable loop since we no longer need to check
|
||||
this->disable_loop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user