Fixed compilation issue for esp32-s3
This commit is contained in:
parent
f8cd0d8b11
commit
612e5f73b7
@ -34,7 +34,7 @@ String ResetReasonClass::get_reset_reason_verbose(uint8_t cpu_id)
|
|||||||
case 3:
|
case 3:
|
||||||
reason_str = F("Software reset digital core");
|
reason_str = F("Software reset digital core");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 4:
|
case 4:
|
||||||
reason_str = F("Legacy watch dog reset digital core");
|
reason_str = F("Legacy watch dog reset digital core");
|
||||||
break;
|
break;
|
||||||
@ -42,7 +42,7 @@ String ResetReasonClass::get_reset_reason_verbose(uint8_t cpu_id)
|
|||||||
case 5:
|
case 5:
|
||||||
reason_str = F("Deep Sleep reset digital core");
|
reason_str = F("Deep Sleep reset digital core");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 6:
|
case 6:
|
||||||
reason_str = F("Reset by SLC module, reset digital core");
|
reason_str = F("Reset by SLC module, reset digital core");
|
||||||
break;
|
break;
|
||||||
@ -68,7 +68,7 @@ String ResetReasonClass::get_reset_reason_verbose(uint8_t cpu_id)
|
|||||||
case 13:
|
case 13:
|
||||||
reason_str = F("RTC Watch dog Reset CPU");
|
reason_str = F("RTC Watch dog Reset CPU");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 14:
|
case 14:
|
||||||
reason_str = F("for APP CPU, reseted by PRO CPU");
|
reason_str = F("for APP CPU, reseted by PRO CPU");
|
||||||
break;
|
break;
|
||||||
@ -100,7 +100,7 @@ String ResetReasonClass::get_reset_reason_short(uint8_t cpu_id)
|
|||||||
case 3:
|
case 3:
|
||||||
reason_str = F("SW_RESET");
|
reason_str = F("SW_RESET");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 4:
|
case 4:
|
||||||
reason_str = F("OWDT_RESET");
|
reason_str = F("OWDT_RESET");
|
||||||
break;
|
break;
|
||||||
@ -108,7 +108,7 @@ String ResetReasonClass::get_reset_reason_short(uint8_t cpu_id)
|
|||||||
case 5:
|
case 5:
|
||||||
reason_str = F("DEEPSLEEP_RESET");
|
reason_str = F("DEEPSLEEP_RESET");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 6:
|
case 6:
|
||||||
reason_str = F("SDIO_RESET");
|
reason_str = F("SDIO_RESET");
|
||||||
break;
|
break;
|
||||||
@ -134,7 +134,7 @@ String ResetReasonClass::get_reset_reason_short(uint8_t cpu_id)
|
|||||||
case 13:
|
case 13:
|
||||||
reason_str = F("RTCWDT_CPU_RESET");
|
reason_str = F("RTCWDT_CPU_RESET");
|
||||||
break;
|
break;
|
||||||
#ifndef CONFIG_IDF_TARGET_ESP32C3
|
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
case 14:
|
case 14:
|
||||||
reason_str = F("EXT_CPU_RESET");
|
reason_str = F("EXT_CPU_RESET");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user