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 <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-08-16 11:43:57 -03:00
parent 978b322b94
commit a7c788ff02

View File

@ -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);
}