mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 12:50:53 +00:00
Merge pull request #152 from gustavonihei/bugfix/early_rwdt_disable
rtc: Disable Flashboot mode when disabling RTC Watchdog timer
This commit is contained in:
commit
97d1c1e997
@ -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