diff options
| -rw-r--r-- | embassy-rp/src/watchdog.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/watchdog.rs b/embassy-rp/src/watchdog.rs index f1e986ec7..229a306fe 100644 --- a/embassy-rp/src/watchdog.rs +++ b/embassy-rp/src/watchdog.rs | |||
| @@ -46,7 +46,7 @@ impl Watchdog { | |||
| 46 | /// or when JTAG is accessing bus fabric | 46 | /// or when JTAG is accessing bus fabric |
| 47 | pub fn pause_on_debug(&mut self, pause: bool) { | 47 | pub fn pause_on_debug(&mut self, pause: bool) { |
| 48 | let watchdog = pac::WATCHDOG; | 48 | let watchdog = pac::WATCHDOG; |
| 49 | watchdog.ctrl().write(|w| { | 49 | watchdog.ctrl().modify(|w| { |
| 50 | w.set_pause_dbg0(pause); | 50 | w.set_pause_dbg0(pause); |
| 51 | w.set_pause_dbg1(pause); | 51 | w.set_pause_dbg1(pause); |
| 52 | w.set_pause_jtag(pause); | 52 | w.set_pause_jtag(pause); |
| @@ -60,7 +60,7 @@ impl Watchdog { | |||
| 60 | 60 | ||
| 61 | fn enable(&self, bit: bool) { | 61 | fn enable(&self, bit: bool) { |
| 62 | let watchdog = pac::WATCHDOG; | 62 | let watchdog = pac::WATCHDOG; |
| 63 | watchdog.ctrl().write(|w| w.set_enable(bit)) | 63 | watchdog.ctrl().modify(|w| w.set_enable(bit)) |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | // Configure which hardware will be reset by the watchdog | 66 | // Configure which hardware will be reset by the watchdog |
