diff options
| -rw-r--r-- | embassy-stm32/src/adc/v3.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/adc/v3.rs b/embassy-stm32/src/adc/v3.rs index 805dae564..a2e42fe52 100644 --- a/embassy-stm32/src/adc/v3.rs +++ b/embassy-stm32/src/adc/v3.rs | |||
| @@ -257,8 +257,8 @@ impl<'d, T: Instance> Adc<'d, T> { | |||
| 257 | #[cfg(any(adc_h5, adc_h7rs))] | 257 | #[cfg(any(adc_h5, adc_h7rs))] |
| 258 | reg.set_ovsr(samples.into()); | 258 | reg.set_ovsr(samples.into()); |
| 259 | #[cfg(not(any(adc_h5, adc_h7rs)))] | 259 | #[cfg(not(any(adc_h5, adc_h7rs)))] |
| 260 | reg.set_ovsr(samples); | 260 | reg.set_ovsr(samples.into()); |
| 261 | reg.set_ovss(right_shift); | 261 | reg.set_ovss(right_shift.into()); |
| 262 | }) | 262 | }) |
| 263 | } | 263 | } |
| 264 | /* | 264 | /* |
