From f58c2963368525de49b743189691a301b5c204f6 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Fri, 8 Jan 2021 19:48:14 +0800 Subject: [PATCH] esp32s2: BROWNOUT reset reason is set directly without using the brownout ISR --- components/hal/esp32s2/brownout_hal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/hal/esp32s2/brownout_hal.c b/components/hal/esp32s2/brownout_hal.c index 0658304d65..a09e1ea4ea 100644 --- a/components/hal/esp32s2/brownout_hal.c +++ b/components/hal/esp32s2/brownout_hal.c @@ -31,6 +31,7 @@ void brownout_hal_config(const brownout_hal_config_t *cfg) .rst_wait = 0x3ff, .rst_ena = cfg->reset_enabled, .ena = cfg->enabled, + .rst_sel = 1, }; RTCCNTL.brown_out = brown_out_reg; }