mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
STM32H7 - Fix failure to allow ADC instance 2 and 3.
This commit is contained in:
parent
bc4372588b
commit
c4d694821c
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ ADCDevice adcDeviceByInstance(ADC_TypeDef *instance)
|
|||
return ADCDEV_1;
|
||||
}
|
||||
|
||||
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7)
|
||||
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
||||
if (instance == ADC2) {
|
||||
return ADCDEV_2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue