diff options
| author | Peter Kövesdi <[email protected]> | 2024-04-29 22:31:16 +0200 |
|---|---|---|
| committer | Peter Kövesdi <[email protected]> | 2024-04-29 22:31:16 +0200 |
| commit | b6f9dbfb5b66190cd8d798ec0f99a7f3cdeb8ea0 (patch) | |
| tree | 032ef2c0c4b7a6438eb8fd582a93123afbd5ae79 /examples/stm32g4/src/bin | |
| parent | 679160a1c573709ccf2c54755e69ea9e1b5a209e (diff) | |
fixed: example loops crashing after 256 passes
Diffstat (limited to 'examples/stm32g4/src/bin')
| -rw-r--r-- | examples/stm32g4/src/bin/can.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g4/src/bin/can.rs b/examples/stm32g4/src/bin/can.rs index 7836334af..90004f874 100644 --- a/examples/stm32g4/src/bin/can.rs +++ b/examples/stm32g4/src/bin/can.rs | |||
| @@ -192,7 +192,7 @@ async fn main(_spawner: Spawner) { | |||
| 192 | 192 | ||
| 193 | Timer::after_millis(250).await; | 193 | Timer::after_millis(250).await; |
| 194 | 194 | ||
| 195 | i += 1; | 195 | i = i.wrapping_add(1); |
| 196 | } | 196 | } |
| 197 | } else { | 197 | } else { |
| 198 | static TX_BUF: StaticCell<can::TxBuf<8>> = StaticCell::new(); | 198 | static TX_BUF: StaticCell<can::TxBuf<8>> = StaticCell::new(); |
| @@ -228,7 +228,7 @@ async fn main(_spawner: Spawner) { | |||
| 228 | 228 | ||
| 229 | Timer::after_millis(250).await; | 229 | Timer::after_millis(250).await; |
| 230 | 230 | ||
| 231 | i += 1; | 231 | i = i.wrapping_add(1); |
| 232 | } | 232 | } |
| 233 | } | 233 | } |
| 234 | } | 234 | } |
