mirror of
https://github.com/esphome/esphome.git
synced 2026-09-22 04:28:43 +00:00
Match ESP8266 Arduino core reset reason names
This commit is contained in:
@@ -150,11 +150,11 @@ static const LogString *get_exception_cause(uint32_t cause) {
|
||||
|
||||
static const LogString *get_reset_reason(uint32_t reason) {
|
||||
if (reason == REASON_WDT_RST)
|
||||
return LOG_STR("Hardware Watchdog");
|
||||
return LOG_STR("Hardware WDT");
|
||||
if (reason == REASON_EXCEPTION_RST)
|
||||
return LOG_STR("Exception");
|
||||
if (reason == REASON_SOFT_WDT_RST)
|
||||
return LOG_STR("Software Watchdog");
|
||||
return LOG_STR("Soft WDT");
|
||||
return LOG_STR("Unknown");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user