nrf/modules/machine/adc: Fix to make adc.c compile for nrf51 targets

This commit is contained in:
Glenn Ruben Bakke 2018-04-20 01:11:48 +02:00 committed by Damien George
parent 24258cf0b9
commit 58ec23fdf7

View File

@ -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.
};