747: stm32/adc/v4: Fix log statement r=Dirbaio a=GrantM11235



Co-authored-by: Grant Miller <GrantM11235@gmail.com>
This commit is contained in:
bors[bot] 2022-05-02 20:18:01 +00:00 committed by GitHub
commit 6e129cf34f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.");