Adjust flags for arduino

This commit is contained in:
Edward Firmo 2024-11-07 16:32:24 +01:00
parent f68a60261f
commit 10605b7e15

View file

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