Advanced consts available from v5.1.4

d7b0a45ddb/components/esp_system/include/esp_system.h (L36)
This commit is contained in:
Edward Firmo 2024-11-11 08:15:16 +01:00 committed by GitHub
parent 8e3eee9eb5
commit 7449a14f86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {