diff --git a/src/stm32f1/adc.c b/src/stm32f1/adc.c index fcdcb911..47271d3e 100644 --- a/src/stm32f1/adc.c +++ b/src/stm32f1/adc.c @@ -76,7 +76,7 @@ gpio_adc_sample(struct gpio_adc g) if (!readb(&adc_busy)) { LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, g.bit); LL_ADC_SetChannelSamplingTime(ADC1, g.bit - , LL_ADC_SAMPLINGTIME_239CYCLES_5); + , LL_ADC_SAMPLINGTIME_41CYCLES_5); LL_ADC_REG_StartConversionSWStart(ADC1); adc_busy = true; adc_current_channel = g.bit;