assert only at least time slept

Cannot deterministically guarantee the upper bound
This commit is contained in:
Ulf Lilleengen 2024-01-26 08:39:50 +01:00
parent 7c21178e37
commit 4d8043cade
2 changed files with 0 additions and 2 deletions
tests
nrf51422/src/bin
nrf52840/src/bin

View file

@ -18,7 +18,6 @@ async fn main(_spawner: Spawner) {
let ms = (end - start).as_millis();
info!("slept for {} ms", ms);
assert!(ms >= 99);
assert!(ms < 110);
info!("Test OK");
cortex_m::asm::bkpt();

View file

@ -18,7 +18,6 @@ async fn main(_spawner: Spawner) {
let ms = (end - start).as_millis();
info!("slept for {} ms", ms);
assert!(ms >= 99);
assert!(ms < 110);
info!("Test OK");
cortex_m::asm::bkpt();