summaryrefslogtreecommitdiff
path: root/ports/stm32/adc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/adc.c')
-rw-r--r--ports/stm32/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/adc.c b/ports/stm32/adc.c
index d153f547d..6bd0f4ce2 100644
--- a/ports/stm32/adc.c
+++ b/ports/stm32/adc.c
@@ -444,7 +444,7 @@ STATIC void adc_config_channel(ADC_HandleTypeDef *adc_handle, uint32_t channel)
if (__HAL_ADC_IS_CHANNEL_INTERNAL(channel)) {
sConfig.SamplingTime = ADC_SAMPLETIME_247CYCLES_5;
} else {
- sConfig.SamplingTime = ADC_SAMPLETIME_12CYCLES_5;
+ sConfig.SamplingTime = ADC_SAMPLETIME_6CYCLES_5;
}
sConfig.SingleDiff = ADC_SINGLE_ENDED;
sConfig.OffsetNumber = ADC_OFFSET_NONE;