stm32/adc/v4: Fix log statement
This commit is contained in:
parent
e74af83681
commit
4bccd77849
@ -339,7 +339,7 @@ impl<'d, T: Instance + crate::rcc::RccPeripheral> Adc<'d, T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let frequency = Hertz(T::frequency().0 / prescaler.divisor());
|
let frequency = Hertz(T::frequency().0 / prescaler.divisor());
|
||||||
defmt::info!("ADC frequency set to {} Hz", frequency.0);
|
info!("ADC frequency set to {} Hz", frequency.0);
|
||||||
|
|
||||||
if frequency > 50.mhz().into() {
|
if frequency > 50.mhz().into() {
|
||||||
panic!("Maximal allowed frequency for the ADC is 50 MHz and it varies with different packages, refer to ST docs for more information.");
|
panic!("Maximal allowed frequency for the ADC is 50 MHz and it varies with different packages, refer to ST docs for more information.");
|
||||||
|
Loading…
Reference in New Issue
Block a user