diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32u0/src/bin/wdt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32u0/src/bin/wdt.rs b/examples/stm32u0/src/bin/wdt.rs index c0db89b22..f6276e2e9 100644 --- a/examples/stm32u0/src/bin/wdt.rs +++ b/examples/stm32u0/src/bin/wdt.rs | |||
| @@ -18,7 +18,7 @@ async fn main(_spawner: Spawner) { | |||
| 18 | let mut wdt = IndependentWatchdog::new(p.IWDG, 1_000_000); | 18 | let mut wdt = IndependentWatchdog::new(p.IWDG, 1_000_000); |
| 19 | wdt.unleash(); | 19 | wdt.unleash(); |
| 20 | 20 | ||
| 21 | let mut i:u8 = 0; | 21 | let mut i = 0; |
| 22 | 22 | ||
| 23 | loop { | 23 | loop { |
| 24 | info!("high"); | 24 | info!("high"); |
| @@ -36,6 +36,6 @@ async fn main(_spawner: Spawner) { | |||
| 36 | wdt.pet(); | 36 | wdt.pet(); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | i = i.wrapping_add(1); | 39 | i += 1; |
| 40 | } | 40 | } |
| 41 | } | 41 | } |
