We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74eb96 commit fc62b96Copy full SHA for fc62b96
testsuite/tests/adc.rs
@@ -72,11 +72,11 @@ mod tests {
72
defmt::debug!("{}", adc_level);
73
defmt::unwrap!(state.output.set_low());
74
// Vref is 3V so output should reach the maximum.
75
- assert!(adc_level >= 3900 && adc_level <= 4100);
+ assert!(adc_level >= 3500 && adc_level <= 4100);
76
let adc_level: u16 = defmt::unwrap!(adc.read(&mut state.analog).ok());
77
78
// nearly zero (always zero can not be guaranteed)
79
- assert!(adc_level <= 100);
+ assert!(adc_level <= 300);
80
}
81
82
// put adc back in place
0 commit comments