Update esphome/components/debug/debug_esp32.cpp

Co-authored-by: Ramil Valitov <ramilvalitov@gmail.com>
This commit is contained in:
Edward Firmo 2024-11-07 19:44:30 +01:00 committed by GitHub
parent 575a5e49eb
commit 00ef64f543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,7 +119,8 @@ std::string DebugComponent::get_reset_reason_() {
case ESP_RST_SDIO:
reset_reason = "Reset over SDIO";
break;
#if defined(USE_ESP_IDF) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
#ifdef USE_ESP32
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 5))
case ESP_RST_USB:
reset_reason = "Reset by USB peripheral";
break;