mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Merge pull request #4192 from jflyper/bfdev-camcontrol-regression-3991
F3/F4 CamControl: Do proper IOConfigGPIOAF for PWM case
This commit is contained in:
commit
b80bae844a
1 changed files with 3 additions and 3 deletions
|
@ -108,10 +108,10 @@ void cameraControlInit()
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef USE_HAL_DRIVER
|
||||
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
||||
#ifdef STM32F1
|
||||
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
|
||||
#else
|
||||
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
|
||||
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
||||
#endif
|
||||
|
||||
pwmOutConfig(&cameraControlRuntime.channel, timerHardware, CAMERA_CONTROL_TIMER_HZ, CAMERA_CONTROL_PWM_RESOLUTION, 0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue