minor HAL swap

This commit is contained in:
Hierophect 2019-09-17 17:54:29 -04:00
parent 97b1208829
commit 601c3ea8dc
1 changed files with 1 additions and 2 deletions

View File

@ -119,8 +119,7 @@ uint16_t common_hal_analogio_analogin_get_value(analogio_analogin_obj_t *self) {
HAL_ADC_Start(&AdcHandle);
HAL_ADC_PollForConversion(&AdcHandle,1);
//uint16_t value = (uint16_t)HAL_ADC_GetValue(&AdcHandle);
uint32_t value = ADCx->DR;
uint16_t value = (uint16_t)HAL_ADC_GetValue(&AdcHandle);
HAL_ADC_Stop(&AdcHandle);
//LL Implementation