This commit is contained in:
Edward Firmo 2024-11-07 16:37:19 +01:00
parent 10605b7e15
commit 575a5e49eb

View file

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