Skip to content

Commit 549f2cd

Browse files
committed
fix(srv/stm32-adc): Fix hardcoded ADC reference
1 parent e6a5ca8 commit 549f2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/stm32-adc/stm32-adc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static adc_ret_t stm32_adc_convert_single(Adc *adc, adc_channel_t input, adc_sam
3434
}
3535

3636
/* And compute the resulting value in millivolts. */
37-
*sample = adc_read_regular(ADC1);
37+
*sample = adc_read_regular(self->adc);
3838
return ADC_RET_OK;
3939
}
4040

0 commit comments

Comments
 (0)