stm32/can: make latency assertion more lenient.
This commit is contained in:
parent
0032f8a2ec
commit
67ca88d5a0
@ -80,8 +80,8 @@ async fn main(_spawner: Spawner) {
|
||||
const MIN_LATENCY: Duration = Duration::from_micros(50);
|
||||
const MAX_LATENCY: Duration = Duration::from_micros(150);
|
||||
assert!(
|
||||
MIN_LATENCY < latency && latency < MAX_LATENCY,
|
||||
"{} < {} < {}",
|
||||
MIN_LATENCY <= latency && latency <= MAX_LATENCY,
|
||||
"{} <= {} <= {}",
|
||||
MIN_LATENCY,
|
||||
latency,
|
||||
MAX_LATENCY
|
||||
|
Loading…
Reference in New Issue
Block a user