diff options
| author | Grant Miller <[email protected]> | 2022-05-02 15:14:49 -0500 |
|---|---|---|
| committer | Grant Miller <[email protected]> | 2022-05-02 15:14:49 -0500 |
| commit | 4bccd77849e2d936f92c0463248d3d0ffb8b16e2 (patch) | |
| tree | 2f7deb447e12e2c96dcd05f09270b3395c5f4134 | |
| parent | e74af83681bc65524acda4ec0a2b52e447c62daf (diff) | |
stm32/adc/v4: Fix log statement
| -rw-r--r-- | embassy-stm32/src/adc/v4.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/v4.rs b/embassy-stm32/src/adc/v4.rs index 11df9677e..99326f38c 100644 --- a/embassy-stm32/src/adc/v4.rs +++ b/embassy-stm32/src/adc/v4.rs | |||
| @@ -339,7 +339,7 @@ impl<'d, T: Instance + crate::rcc::RccPeripheral> Adc<'d, T> { | |||
| 339 | } | 339 | } |
| 340 | 340 | ||
| 341 | let frequency = Hertz(T::frequency().0 / prescaler.divisor()); | 341 | let frequency = Hertz(T::frequency().0 / prescaler.divisor()); |
| 342 | defmt::info!("ADC frequency set to {} Hz", frequency.0); | 342 | info!("ADC frequency set to {} Hz", frequency.0); |
| 343 | 343 | ||
| 344 | if frequency > 50.mhz().into() { | 344 | if frequency > 50.mhz().into() { |
| 345 | panic!("Maximal allowed frequency for the ADC is 50 MHz and it varies with different packages, refer to ST docs for more information."); | 345 | panic!("Maximal allowed frequency for the ADC is 50 MHz and it varies with different packages, refer to ST docs for more information."); |
