We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bddd88 + d0fce35 commit 94fb4a3Copy full SHA for 94fb4a3
targets/TARGET_STM/TARGET_STM32F4/analogin_api.c
@@ -180,11 +180,12 @@ static inline uint16_t adc_read(analogin_t *obj)
180
break;
181
case 17:
182
sConfig.Channel = ADC_CHANNEL_VREFINT;
183
+ /* From experiment, measurement needs max sampling time to be valid */
184
+ sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
185
186
case 18:
187
sConfig.Channel = ADC_CHANNEL_VBAT;
- /* From experiment, VBAT measurement needs max
- * sampling time to be avlid */
188
189
sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
190
191
default:
0 commit comments