From bd741a40191d127e804d668366e92a8fc43c5b18 Mon Sep 17 00:00:00 2001 From: chemicstry Date: Sun, 10 Jul 2022 21:08:30 +0300 Subject: [PATCH] Add comments to watchdog example --- examples/stm32f4/src/bin/wdt.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/stm32f4/src/bin/wdt.rs b/examples/stm32f4/src/bin/wdt.rs index 41e1f4c7..a23cfe9c 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) { led.set_low(); Timer::after(Duration::from_millis(300)).await; + // Pet watchdog for 5 iterations and then stop. + // MCU should restart in 1 second after the last pet. if i < 5 { info!("Petting watchdog"); unsafe {