aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-08-20 10:57:28 +0200
committerDario Nieuwenhuis <[email protected]>2023-08-20 10:57:28 +0200
commit67ca88d5a031369f9bae99c55243625644c93a71 (patch)
treef91989e202ece3261b4775ec3c5994bad0a82f85
parent0032f8a2ec05ed61b17dc1992f907f23f1b37f92 (diff)
stm32/can: make latency assertion more lenient.
-rw-r--r--tests/stm32/src/bin/can.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stm32/src/bin/can.rs b/tests/stm32/src/bin/can.rs
index 8737ca8ee..acf545216 100644
--- a/tests/stm32/src/bin/can.rs
+++ b/tests/stm32/src/bin/can.rs
@@ -80,8 +80,8 @@ async fn main(_spawner: Spawner) {
80 const MIN_LATENCY: Duration = Duration::from_micros(50); 80 const MIN_LATENCY: Duration = Duration::from_micros(50);
81 const MAX_LATENCY: Duration = Duration::from_micros(150); 81 const MAX_LATENCY: Duration = Duration::from_micros(150);
82 assert!( 82 assert!(
83 MIN_LATENCY < latency && latency < MAX_LATENCY, 83 MIN_LATENCY <= latency && latency <= MAX_LATENCY,
84 "{} < {} < {}", 84 "{} <= {} <= {}",
85 MIN_LATENCY, 85 MIN_LATENCY,
86 latency, 86 latency,
87 MAX_LATENCY 87 MAX_LATENCY