1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00

[safe_mode] Reduce flash usage by 172 bytes through code optimization

This commit is contained in:
J. Nick Koston
2025-08-18 12:40:24 -05:00
parent be2a680e8f
commit 7d3a87c603

View File

@@ -98,7 +98,7 @@ bool SafeModeComponent::should_enter_safe_mode(uint8_t num_attempts, uint32_t en
this->status_set_error(); this->status_set_error();
this->set_timeout(enable_time, []() { this->set_timeout(enable_time, []() {
ESP_LOGW(TAG, "Safe mode timeout - restarting"); ESP_LOGW(TAG, "Timeout, restarting");
App.reboot(); App.reboot();
}); });