Skip to content

Commit bee6fe5

Browse files
committed
[ADC] Fix redundant code
Signed-off-by: Frederic Pillon <[email protected]>
1 parent fd40374 commit bee6fe5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cores/arduino/stm32/analog.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ uint16_t adc_read_value(PinName pin)
845845
#if defined(STM32G0xx)
846846
AdcHandle.Init.SamplingTimeCommon1 = samplingTime; /* Set sampling time common to a group of channels. */
847847
AdcHandle.Init.SamplingTimeCommon2 = samplingTime; /* Set sampling time common to a group of channels, second common setting possible.*/
848-
AdcHandle.Init.TriggerFrequencyMode = ADC_TRIGGER_FREQ_HIGH;
849848
#endif
850849
#if defined(STM32L0xx)
851850
AdcHandle.Init.LowPowerFrequencyMode = DISABLE; /* To be enabled only if ADC clock < 2.8 MHz */

0 commit comments

Comments
 (0)