Merge pull request #2891 from pkoevesdi/main

fixed: example loops crashing after 256 passes
This commit is contained in:
Dario Nieuwenhuis 2024-04-29 21:09:03 +00:00 committed by GitHub
commit 2410e91785
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 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

@ -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);
}
}