Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
Diff: targets/TARGET_Maxim/TARGET_MAX32625/analogin_api.c
- 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;