Maxim mbed development library
Dependents: MAX34417_demo MAXREFDES1265 MAXREFDES1265
Fork of mbed-dev by
Diff: targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c
- Revision:
- 160:6281008870ff
- Parent:
- 150:02e0a0aed4ec
--- a/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c Tue Feb 28 17:13:35 2017 +0000 +++ b/targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c Wed Mar 08 21:38:12 2017 +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;