diff --git a/src/stm32/stm32f0_adc.c b/src/stm32/stm32f0_adc.c index 951d5bb1..8f27dce7 100644 --- a/src/stm32/stm32f0_adc.c +++ b/src/stm32/stm32f0_adc.c @@ -91,6 +91,7 @@ gpio_adc_setup(uint32_t pin) ; // Enable ADC adc->ISR = ADC_ISR_ADRDY; + adc->ISR; // Dummy read to make sure write is flushed adc->CR = CR_FLAGS | ADC_CR_ADEN; while (!(adc->ISR & ADC_ISR_ADRDY)) ;