Skip to content

Commit 1a1a708

Browse files
committed
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
1 parent ea010f8 commit 1a1a708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_system/port/brownout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BROWNOUT_DET_LVL 0
2929
#endif
3030

31-
static __attribute__((unused)) DRAM_ATTR const char *TAG = "BOD";
31+
static __attribute__((unused)) DRAM_ATTR const char TAG[] = "BOD";
3232

3333
#if CONFIG_ESP_SYSTEM_BROWNOUT_INTR
3434
IRAM_ATTR static void rtc_brownout_isr_handler(void *arg)

0 commit comments

Comments
 (0)