test

Fork of mbed-dev by mbed official

Revision:
174:e131a1973e81
Parent:
173:7d866c31b3c5
diff -r 7d866c31b3c5 -r e131a1973e81 targets/TARGET_STM/TARGET_STM32F4/analogin_api.c
--- a/targets/TARGET_STM/TARGET_STM32F4/analogin_api.c	Thu Aug 31 17:27:04 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F4/analogin_api.c	Fri Sep 15 14:59:18 2017 +0100
@@ -180,11 +180,12 @@
             break;
         case 17:
             sConfig.Channel = ADC_CHANNEL_VREFINT;
+            /*  From experiment, measurement needs max sampling time to be valid */
+            sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
             break;
         case 18:
             sConfig.Channel = ADC_CHANNEL_VBAT;
-            /*  From experiment, VBAT measurement needs max
-             *  sampling time to be avlid */
+            /*  From experiment, measurement needs max sampling time to be valid */
             sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
             break;
         default: