We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24258cf commit 58ec23fCopy full SHA for 58ec23f
ports/nrf/modules/machine/adc.c
@@ -157,7 +157,7 @@ int16_t machine_adc_value_read(machine_adc_obj_t * adc_obj) {
157
.config.resolution = NRF_ADC_CONFIG_RES_8BIT,
158
.config.input = NRF_ADC_CONFIG_SCALING_INPUT_TWO_THIRDS,
159
.config.reference = NRF_ADC_CONFIG_REF_VBG,
160
- .config.input = self->ain,
+ .config.input = adc_obj->ain,
161
.config.extref = ADC_CONFIG_EXTREFSEL_None << ADC_CONFIG_EXTREFSEL_Pos // Currently not defined in nrfx/hal.
162
};
163
0 commit comments