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/stm32h5 | |
| parent | 679160a1c573709ccf2c54755e69ea9e1b5a209e (diff) | |
fixed: example loops crashing after 256 passes
Diffstat (limited to 'examples/stm32h5')
| -rw-r--r-- | examples/stm32h5/src/bin/can.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h5/src/bin/can.rs b/examples/stm32h5/src/bin/can.rs index dc77ec3bf..194239d47 100644 --- a/examples/stm32h5/src/bin/can.rs +++ b/examples/stm32h5/src/bin/can.rs | |||
| @@ -93,6 +93,6 @@ async fn main(_spawner: Spawner) { | |||
| 93 | 93 | ||
| 94 | Timer::after_millis(250).await; | 94 | Timer::after_millis(250).await; |
| 95 | 95 | ||
| 96 | i += 1; | 96 | i = i.wrapping_add(1); |
| 97 | } | 97 | } |
| 98 | } | 98 | } |
