summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glennbakke@gmail.com>2018-04-20 01:11:48 +0200
committerDamien George <damien.p.george@gmail.com>2018-07-18 17:12:26 +1000
commit58ec23fdf707329088f3d2f7537a94e8cd77b167 (patch)
treecc2eb3cc670a40f7ab5d9a6e75fe0600cd9b5df5
parent24258cf0b9ab903d506b894b011473075aedce96 (diff)
nrf/modules/machine/adc: Fix to make adc.c compile for nrf51 targets
-rw-r--r--ports/nrf/modules/machine/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/modules/machine/adc.c b/ports/nrf/modules/machine/adc.c
index 66897426d..bbb522154 100644
--- a/ports/nrf/modules/machine/adc.c
+++ b/ports/nrf/modules/machine/adc.c
@@ -157,7 +157,7 @@ int16_t machine_adc_value_read(machine_adc_obj_t * adc_obj) {
.config.resolution = NRF_ADC_CONFIG_RES_8BIT,
.config.input = NRF_ADC_CONFIG_SCALING_INPUT_TWO_THIRDS,
.config.reference = NRF_ADC_CONFIG_REF_VBG,
- .config.input = self->ain,
+ .config.input = adc_obj->ain,
.config.extref = ADC_CONFIG_EXTREFSEL_None << ADC_CONFIG_EXTREFSEL_Pos // Currently not defined in nrfx/hal.
};