mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 10:44:13 +01:00
Advanced consts available from v5.1.4
d7b0a45ddb/components/esp_system/include/esp_system.h (L36)
This commit is contained in:
parent
8e3eee9eb5
commit
7449a14f86
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ std::string DebugComponent::get_reset_reason_() {
|
||||||
reset_reason = "Reset over SDIO";
|
reset_reason = "Reset over SDIO";
|
||||||
break;
|
break;
|
||||||
#ifdef USE_ESP32_VARIANT_ESP32
|
#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:
|
case ESP_RST_USB:
|
||||||
reset_reason = "Reset by USB peripheral";
|
reset_reason = "Reset by USB peripheral";
|
||||||
break;
|
break;
|
||||||
|
@ -78,7 +78,7 @@ std::string DebugComponent::get_reset_reason_() {
|
||||||
case ESP_RST_CPU_LOCKUP:
|
case ESP_RST_CPU_LOCKUP:
|
||||||
reset_reason = "Reset due to CPU lock up (double exception)";
|
reset_reason = "Reset due to CPU lock up (double exception)";
|
||||||
break;
|
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
|
#endif // USE_ESP32_VARIANT_ESP32
|
||||||
default: // Includes ESP_RST_UNKNOWN
|
default: // Includes ESP_RST_UNKNOWN
|
||||||
switch (rtc_get_reset_reason(0)) {
|
switch (rtc_get_reset_reason(0)) {
|
||||||
|
|
Loading…
Reference in a new issue