Update esphome/components/debug/debug_esp32.cpp

Co-authored-by: Ramil Valitov <ramilvalitov@gmail.com>
This commit is contained in:
Edward Firmo 2024-11-07 19:44:56 +01:00 committed by GitHub
parent 00ef64f543
commit c7dd33d359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,7 +136,8 @@ std::string DebugComponent::get_reset_reason_() {
case ESP_RST_CPU_LOCKUP:
reset_reason = "Reset due to CPU lock up (double exception)";
break;
#endif
#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 5)
#endif // USE_ESP32
default:
reset_reason = "Software Reset CPU";
break;