mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
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());
|
||||
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.");
|
||||
|
Loading…
Reference in New Issue
Block a user