File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ num-traits = { version = "0.2.14", default-features = false }
6363
6464[features ]
6565# enable all defmt logging levels
66- default = [" stm32f3xx-hal/stm32f303xc" ]
66+ default = [" stm32f3xx-hal/stm32f303xc" , " defmt-default " ]
6767
6868# do not modify these features
69- defmt-default = [" defmt-info " ]
69+ defmt-default = [" defmt-trace " ]
7070defmt-trace = [" stm32f3xx-hal/defmt-trace" ]
7171defmt-debug = [" stm32f3xx-hal/defmt-trace" ]
7272defmt-info = [" stm32f3xx-hal/defmt-trace" ]
Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ mod tests {
7272 defmt:: debug!( "{}" , adc_level) ;
7373 defmt:: unwrap!( state. output. set_low( ) ) ;
7474 // Vref is 3V so output should reach the maximum.
75- assert ! ( adc_level >= 3900 && adc_level <= 4100 ) ;
75+ assert ! ( adc_level >= 3500 && adc_level <= 4100 ) ;
7676 let adc_level: u16 = defmt:: unwrap!( adc. read( & mut state. analog) . ok( ) ) ;
7777 defmt:: debug!( "{}" , adc_level) ;
7878 // nearly zero (always zero can not be guaranteed)
79- assert ! ( adc_level <= 100 ) ;
79+ assert ! ( adc_level <= 300 ) ;
8080 }
8181
8282 // put adc back in place
You can’t perform that action at this time.
0 commit comments