Skip to content

Commit 58ec23f

Browse files
glennrubdpgeorge
authored andcommitted
nrf/modules/machine/adc: Fix to make adc.c compile for nrf51 targets
1 parent 24258cf commit 58ec23f

File tree

1 file changed

+1
-1
lines changed
  • ports/nrf/modules/machine

1 file changed

+1
-1
lines changed

ports/nrf/modules/machine/adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ int16_t machine_adc_value_read(machine_adc_obj_t * adc_obj) {
157157
.config.resolution = NRF_ADC_CONFIG_RES_8BIT,
158158
.config.input = NRF_ADC_CONFIG_SCALING_INPUT_TWO_THIRDS,
159159
.config.reference = NRF_ADC_CONFIG_REF_VBG,
160-
.config.input = self->ain,
160+
.config.input = adc_obj->ain,
161161
.config.extref = ADC_CONFIG_EXTREFSEL_None << ADC_CONFIG_EXTREFSEL_Pos // Currently not defined in nrfx/hal.
162162
};
163163

0 commit comments

Comments
 (0)