From a7c788ff02ded33227fc6670f5c037cc87800f63 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 16 Aug 2022 11:43:57 -0300 Subject: [PATCH] rtc: Disable Flashboot mode when disabling RTC Watchdog timer This commit fixes a regression to Direct Boot support introduced on routine. Signed-off-by: Gustavo Henrique Nihei --- esp-hal-common/src/rtc_cntl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal-common/src/rtc_cntl.rs b/esp-hal-common/src/rtc_cntl.rs index 840fd7127..edced77bb 100644 --- a/esp-hal-common/src/rtc_cntl.rs +++ b/esp-hal-common/src/rtc_cntl.rs @@ -508,7 +508,7 @@ impl WatchdogDisable for Rwdt { self.set_write_protection(false); - rtc_cntl.wdtconfig0.modify(|_, w| w.wdt_en().clear_bit()); + rtc_cntl.wdtconfig0.modify(|_, w| w.wdt_en().clear_bit().wdt_flashboot_mod_en().clear_bit()); self.set_write_protection(true); }