aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-05-02 20:18:01 +0000
committerGitHub <[email protected]>2022-05-02 20:18:01 +0000
commit6e129cf34f96020ca58a5adea31421bd2d7be17d (patch)
tree2c2c5fadcb10e67aedb790d20a6b21454d60a462
parentb1afe54c5fd7589e07af5e87d149892bc25582ef (diff)
parent4bccd77849e2d936f92c0463248d3d0ffb8b16e2 (diff)
Merge #747
747: stm32/adc/v4: Fix log statement r=Dirbaio a=GrantM11235 Co-authored-by: Grant Miller <[email protected]>
-rw-r--r--embassy-stm32/src/adc/v4.rs2
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.");