stm32/adc/v4: Fix log statement

This commit is contained in:
Grant Miller 2022-05-02 15:14:49 -05:00
parent e74af83681
commit 4bccd77849

View File

@ -339,7 +339,7 @@ impl<'d, T: Instance + crate::rcc::RccPeripheral> Adc<'d, T> {
}
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() {
panic!("Maximal allowed frequency for the ADC is 50 MHz and it varies with different packages, refer to ST docs for more information.");