Skip to content

Commit

Permalink
Remove timer deviation tolerance depending on build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh3Rm4n committed Aug 15, 2021
1 parent 4a01e09 commit 10e47e0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions testsuite/tests/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ mod tests {

// Deviation is high for smaller timer durations. Higher duratinons are pretty accurate.
// TODO: Maybe the allowed deviation should changed depending on the duration?
#[cfg(not(debug_assertions))]
defmt::assert!(deviation < 15e-4);
#[cfg(debug_assertions)]
defmt::assert!(deviation < 40e-4);
}
state.timer = Some(timer);
Expand Down

0 comments on commit 10e47e0

Please sign in to comment.