fix(brownout): fixed brownout isr crashing if cache disabled

If a brownout ISR was triggered while cache was disabled the system would panic.

This was due to a print accessing a string stored in flash
This commit is contained in:
Marius Vikhammer 2024-05-09 17:45:01 +08:00
parent 94d3c76950
commit 1c4cdfe4b7

View File

@ -28,7 +28,7 @@
#define BROWNOUT_DET_LVL 0
#endif
static __attribute__((unused)) DRAM_ATTR const char *TAG = "BOD";
static __attribute__((unused)) DRAM_ATTR const char TAG[] = "BOD";
#if CONFIG_ESP_SYSTEM_BROWNOUT_INTR
IRAM_ATTR static void rtc_brownout_isr_handler(void *arg)