mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 05:40:39 +00:00
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:
parent
978b322b94
commit
a7c788ff02
@ -508,7 +508,7 @@ impl WatchdogDisable for Rwdt {
|
|||||||
|
|
||||||
self.set_write_protection(false);
|
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);
|
self.set_write_protection(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user