diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32f4/src/bin/wdt.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/stm32f4/src/bin/wdt.rs b/examples/stm32f4/src/bin/wdt.rs index 41e1f4c7b..a23cfe9c0 100644 --- a/examples/stm32f4/src/bin/wdt.rs +++ b/examples/stm32f4/src/bin/wdt.rs | |||
| @@ -32,6 +32,8 @@ async fn main(_spawner: Spawner, p: Peripherals) { | |||
| 32 | led.set_low(); | 32 | led.set_low(); |
| 33 | Timer::after(Duration::from_millis(300)).await; | 33 | Timer::after(Duration::from_millis(300)).await; |
| 34 | 34 | ||
| 35 | // Pet watchdog for 5 iterations and then stop. | ||
| 36 | // MCU should restart in 1 second after the last pet. | ||
| 35 | if i < 5 { | 37 | if i < 5 { |
| 36 | info!("Petting watchdog"); | 38 | info!("Petting watchdog"); |
| 37 | unsafe { | 39 | unsafe { |
