Merge pull request #2891 from pkoevesdi/main
fixed: example loops crashing after 256 passes
This commit is contained in:
commit
2410e91785
5 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue