Matched conditionals to 'src/main/drivers/adc.h'.

This commit is contained in:
mikeller 2020-07-05 13:25:07 +12:00
parent e4954333d3
commit 46f2a3e30e
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ void pgResetFn_adcConfig(adcConfig_t *adcConfig)
{
adcConfig->device = ADC_DEV_TO_CFG(adcDeviceByInstance(ADC_INSTANCE));
adcConfig->dmaopt[ADCDEV_1] = ADC1_DMA_OPT;
#ifndef STM32F1
// These conditionals need to match the ones used in 'src/main/drivers/adc.h'.
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7) || defined(STM32G4)
adcConfig->dmaopt[ADCDEV_2] = ADC2_DMA_OPT;
adcConfig->dmaopt[ADCDEV_3] = ADC3_DMA_OPT;
#endif