mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Update esphome/components/debug/debug_esp32.cpp
Co-authored-by: Ramil Valitov <ramilvalitov@gmail.com>
This commit is contained in:
parent
575a5e49eb
commit
00ef64f543
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ std::string DebugComponent::get_reset_reason_() {
|
||||||
case ESP_RST_SDIO:
|
case ESP_RST_SDIO:
|
||||||
reset_reason = "Reset over SDIO";
|
reset_reason = "Reset over SDIO";
|
||||||
break;
|
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:
|
case ESP_RST_USB:
|
||||||
reset_reason = "Reset by USB peripheral";
|
reset_reason = "Reset by USB peripheral";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue