stm32fxxx-hal-libraries
stm32fxxx-hal-libraries copied to clipboard
Added HAL_ADC_STATE_READY to checking conversion of a regular channel…
After called HAL_ADC_PollForConversion()
, ADC state can have both HAL_ADC_STATE_REG_EOC
and HAL_ADC_STATE_READY
like below situation:
https://github.com/MaJerle/stm32fxxx_hal_libraries/blob/b295f87c649cccf0c27bcd6f8f3695666fdde571/00-HAL_DRIVERS/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c#L634-L655
So, Added HAL_ADC_STATE_READY
to the code of checking conversion of a regular channel finished.
Thank you!!
邮件已收到,我会尽快回复的!