fixed: example loops crashing after 256 passes

This commit is contained in:
Peter Kövesdi 2024-04-29 22:31:16 +02:00
parent 679160a1c5
commit b6f9dbfb5b
7 changed files with 9 additions and 9 deletions

View File

@ -85,7 +85,7 @@ async fn main(_spawner: Spawner) {
defmt::println!("Error {}", err);
}
}
i += 1;
i = i.wrapping_add(1);
}
*/
@ -135,6 +135,6 @@ async fn main(_spawner: Spawner) {
defmt::println!("Error {}", err);
}
}
i += 1;
i = i.wrapping_add(1);
}
}

View File

@ -63,6 +63,6 @@ async fn main(_spawner: Spawner) {
envelope.frame.data()[0],
latency.as_micros()
);
i += 1;
i = i.wrapping_add(1);
}
}

View File

@ -36,6 +36,6 @@ async fn main(_spawner: Spawner) {
wdt.pet();
}
i += 1;
i = i.wrapping_add(1);
}
}

View File

@ -192,7 +192,7 @@ async fn main(_spawner: Spawner) {
Timer::after_millis(250).await;
i += 1;
i = i.wrapping_add(1);
}
} else {
static TX_BUF: StaticCell<can::TxBuf<8>> = StaticCell::new();
@ -228,7 +228,7 @@ async fn main(_spawner: Spawner) {
Timer::after_millis(250).await;
i += 1;
i = i.wrapping_add(1);
}
}
}

View File

@ -93,6 +93,6 @@ async fn main(_spawner: Spawner) {
Timer::after_millis(250).await;
i += 1;
i = i.wrapping_add(1);
}
}

View File

@ -93,6 +93,6 @@ async fn main(_spawner: Spawner) {
Timer::after_millis(250).await;
i += 1;
i = i.wrapping_add(1);
}
}

View File

@ -36,6 +36,6 @@ async fn main(_spawner: Spawner) {
wdt.pet();
}
i += 1;
i = i.wrapping_add(1);
}
}