diff options
| author | Steven Friedman <[email protected]> | 2025-04-08 09:36:35 -0400 |
|---|---|---|
| committer | Steven Friedman <[email protected]> | 2025-04-08 09:36:35 -0400 |
| commit | bbf2a641dd6760777d862d8de49217c632b30156 (patch) | |
| tree | 252d333b74a824dd345373ae890ff236bf549b28 /embassy-stm32/src/adc/g4.rs | |
| parent | 3cb178e78e737fd83e78d04233e7e13f668f6c61 (diff) | |
remove Hz from log
Diffstat (limited to 'embassy-stm32/src/adc/g4.rs')
| -rw-r--r-- | embassy-stm32/src/adc/g4.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/g4.rs b/embassy-stm32/src/adc/g4.rs index 8d13c85be..91be53607 100644 --- a/embassy-stm32/src/adc/g4.rs +++ b/embassy-stm32/src/adc/g4.rs | |||
| @@ -143,7 +143,7 @@ impl<'d, T: Instance> Adc<'d, T> { | |||
| 143 | T::common_regs().ccr().modify(|w| w.set_presc(prescaler.presc())); | 143 | T::common_regs().ccr().modify(|w| w.set_presc(prescaler.presc())); |
| 144 | 144 | ||
| 145 | let frequency = Hertz(T::frequency().0 / prescaler.divisor()); | 145 | let frequency = Hertz(T::frequency().0 / prescaler.divisor()); |
| 146 | info!("ADC frequency set to {} Hz", frequency); | 146 | info!("ADC frequency set to {}", frequency); |
| 147 | 147 | ||
| 148 | if frequency > MAX_ADC_CLK_FREQ { | 148 | if frequency > MAX_ADC_CLK_FREQ { |
| 149 | panic!("Maximal allowed frequency for the ADC is {} MHz and it varies with different packages, refer to ST docs for more information.", MAX_ADC_CLK_FREQ.0 / 1_000_000 ); | 149 | panic!("Maximal allowed frequency for the ADC is {} MHz and it varies with different packages, refer to ST docs for more information.", MAX_ADC_CLK_FREQ.0 / 1_000_000 ); |
