mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
fixed: example loops crashing after 256 passes
This commit is contained in:
parent
679160a1c5
commit
b6f9dbfb5b
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,6 @@ async fn main(_spawner: Spawner) {
|
||||
envelope.frame.data()[0],
|
||||
latency.as_micros()
|
||||
);
|
||||
i += 1;
|
||||
i = i.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,6 @@ async fn main(_spawner: Spawner) {
|
||||
wdt.pet();
|
||||
}
|
||||
|
||||
i += 1;
|
||||
i = i.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -93,6 +93,6 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
Timer::after_millis(250).await;
|
||||
|
||||
i += 1;
|
||||
i = i.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
@ -93,6 +93,6 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
Timer::after_millis(250).await;
|
||||
|
||||
i += 1;
|
||||
i = i.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,6 @@ async fn main(_spawner: Spawner) {
|
||||
wdt.pet();
|
||||
}
|
||||
|
||||
i += 1;
|
||||
i = i.wrapping_add(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user