From 7449a14f86590a3ee65c30b5ee856940b4603a4f Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:15:16 +0100 Subject: [PATCH] Advanced consts available from v5.1.4 https://github.com/espressif/esp-idf/blob/d7b0a45ddbddbac53afb4fc28168f9f9259dbb79/components/esp_system/include/esp_system.h#L36 --- esphome/components/debug/debug_esp32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/debug/debug_esp32.cpp b/esphome/components/debug/debug_esp32.cpp index 50cdee49ef..5f7b9cdbb0 100644 --- a/esphome/components/debug/debug_esp32.cpp +++ b/esphome/components/debug/debug_esp32.cpp @@ -62,7 +62,7 @@ std::string DebugComponent::get_reset_reason_() { reset_reason = "Reset over SDIO"; break; #ifdef USE_ESP32_VARIANT_ESP32 -#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)) +#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 4)) case ESP_RST_USB: reset_reason = "Reset by USB peripheral"; break; @@ -78,7 +78,7 @@ std::string DebugComponent::get_reset_reason_() { case ESP_RST_CPU_LOCKUP: reset_reason = "Reset due to CPU lock up (double exception)"; break; -#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0) +#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 4) #endif // USE_ESP32_VARIANT_ESP32 default: // Includes ESP_RST_UNKNOWN switch (rtc_get_reset_reason(0)) {