From 575a5e49eb83bd1567d5f9fceb61b1387ffa2dde Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:37:19 +0100 Subject: [PATCH] clang --- esphome/components/debug/debug_esp32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/debug/debug_esp32.cpp b/esphome/components/debug/debug_esp32.cpp index 8db7693c31..c23d2f9c2b 100644 --- a/esphome/components/debug/debug_esp32.cpp +++ b/esphome/components/debug/debug_esp32.cpp @@ -119,7 +119,7 @@ std::string DebugComponent::get_reset_reason_() { case ESP_RST_SDIO: reset_reason = "Reset over SDIO"; break; -#ifdef USE_ESP_IDF && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0) +#if defined(USE_ESP_IDF) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0) case ESP_RST_USB: reset_reason = "Reset by USB peripheral"; break;