minor HAL swap
This commit is contained in:
parent
97b1208829
commit
601c3ea8dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue