Add comments to watchdog example
This commit is contained in:
parent
1fd5022e72
commit
bd741a4019
@ -32,6 +32,8 @@ async fn main(_spawner: Spawner, p: Peripherals) {
|
|||||||
led.set_low();
|
led.set_low();
|
||||||
Timer::after(Duration::from_millis(300)).await;
|
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 {
|
if i < 5 {
|
||||||
info!("Petting watchdog");
|
info!("Petting watchdog");
|
||||||
unsafe {
|
unsafe {
|
||||||
|
Loading…
Reference in New Issue
Block a user