tinker with dma

This commit is contained in:
2023-11-14 12:18:41 -05:00
parent 404a390372
commit 0dae513a2c
3 changed files with 11 additions and 23 deletions

View File

@@ -74,7 +74,7 @@ void *_configureADCInline(const void *driver_params, const int pinA, const int p
ADC_DMA_Init(&hadc1);
ADC_DMA_Init(&hadc2);
if (HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Result, 1) != HAL_OK)
if (HAL_ADC_Start_DMA(&hadc1, (uint32_t *)adc1Result, 2) != HAL_OK)
{
SIMPLEFOC_DEBUG("DMA1 read init failed");
}