diff --git a/os/hal/platforms/STM32F30x/adc_lld.c b/os/hal/platforms/STM32F30x/adc_lld.c index 953781bc8..7936be680 100644 --- a/os/hal/platforms/STM32F30x/adc_lld.c +++ b/os/hal/platforms/STM32F30x/adc_lld.c @@ -342,7 +342,7 @@ void adc_lld_init(void) { #if STM32_ADC_USE_ADC3 /* Driver initialization.*/ - adcObjectInit(&ADCD1); + adcObjectInit(&ADCD3); ADCD3.adcc = ADC3_4; ADCD3.adcm = ADC3; #if STM32_ADC_DUAL_MODE