1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[safe_mode] Combine log statements to reduce loop blocking (#12955)

This commit is contained in:
J. Nick Koston
2026-01-04 16:10:19 -10:00
committed by GitHub
parent 7449421cea
commit 9f7925c1d5

View File

@@ -40,8 +40,10 @@ void SafeModeComponent::dump_config() {
#ifdef USE_OTA_ROLLBACK
const esp_partition_t *last_invalid = esp_ota_get_last_invalid_partition();
if (last_invalid != nullptr) {
ESP_LOGW(TAG, "OTA rollback detected! Rolled back from partition '%s'", last_invalid->label);
ESP_LOGW(TAG, "The device reset before the boot was marked successful");
ESP_LOGW(TAG,
"OTA rollback detected! Rolled back from partition '%s'\n"
"The device reset before the boot was marked successful",
last_invalid->label);
}
#endif
}