Handle new entries when using ESP-IDF v4.4

This commit is contained in:
Edward Firmo 2024-11-07 00:35:17 +01:00
parent 7c2cdcfea3
commit 52642af7a4

View file

@ -119,6 +119,7 @@ std::string DebugComponent::get_reset_reason_() {
case ESP_RST_SDIO:
reset_reason = "Software Reset CPU (Reset over SDIO)";
break;
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
case ESP_RST_USB:
reset_reason = "Software Reset CPU (Reset by USB peripheral)";
break;
@ -134,6 +135,7 @@ std::string DebugComponent::get_reset_reason_() {
case ESP_RST_CPU_LOCKUP:
reset_reason = "Software Reset CPU (Reset due to CPU lock up (double exception))";
break;
#endif
default:
reset_reason = "Software Reset CPU";
break;