Greg Steiert / pegasus_dev

Dependents:   blinky_max32630fthr

Revision:
3:1198227e6421
Parent:
0:5c4d7b2438d3
--- a/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c	Tue Dec 13 21:27:44 2016 +0000
+++ b/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c	Fri Dec 16 16:27:57 2016 +0000
@@ -65,7 +65,7 @@
     float result;
 
     // Start conversion with no input scaling and no input buffer bypass
-    ADC_StartConvert(obj->channel, 0, 0);
+    ADC_StartConvert(obj->channel, 1, 0);
 
     if (ADC_GetData(&tmp) == E_OVERFLOW) {
         result = FLOAT_FULL_SCALE;
@@ -83,7 +83,7 @@
     uint16_t result;
 
     // Start conversion with no input scaling and no input buffer bypass
-    ADC_StartConvert(obj->channel, 0, 0);
+    ADC_StartConvert(obj->channel, 1, 0);
 
     if (ADC_GetData(&tmp) == E_OVERFLOW) {
         result = INT_FULL_SCALE;