From 8e3eee9eb537a53f9f454fb8e21e268289923476 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:15:29 +0100 Subject: [PATCH] Advanced options only on IDF 5.1+ --- esphome/components/debug/debug_esp32.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/debug/debug_esp32.cpp b/esphome/components/debug/debug_esp32.cpp index 40c9676a9b..50cdee49ef 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(4, 4, 5)) +#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)) 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(4, 4, 5) +#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0) #endif // USE_ESP32_VARIANT_ESP32 default: // Includes ESP_RST_UNKNOWN switch (rtc_get_reset_reason(0)) { @@ -347,4 +347,4 @@ void DebugComponent::update_platform_() { } // namespace debug } // namespace esphome -#endif +#endif // USE_ESP32