You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found a bug in the TM_ADC_Read function where at the end of the conversion, it checks the EOC flag. Apparently in the latest HAL that you support (1.7.1), this is not the only flag set now as the READY state is also set.
I fixed it on line 175 of tm_stm32_adc.c by checking for that flag as a flag instead as the equal value:
if (HAL_ADC_GetState(&AdcHandle) & HAL_ADC_STATE_EOC_REG == HAL_ADC_STATE_EOC_REG) {
This fixed the issue. I would do a pull request but my github is messed up at the moment.
The text was updated successfully, but these errors were encountered:
Found a bug in the TM_ADC_Read function where at the end of the conversion, it checks the EOC flag. Apparently in the latest HAL that you support (1.7.1), this is not the only flag set now as the READY state is also set.
I fixed it on line 175 of tm_stm32_adc.c by checking for that flag as a flag instead as the equal value:
if (HAL_ADC_GetState(&AdcHandle) & HAL_ADC_STATE_EOC_REG == HAL_ADC_STATE_EOC_REG) {
This fixed the issue. I would do a pull request but my github is messed up at the moment.
The text was updated successfully, but these errors were encountered: