mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Do full IOConfigGPIOAF instead of IOConfigGPIO
This commit is contained in:
parent
d284ae31ad
commit
1bc2e756f5
1 changed files with 0 additions and 4 deletions
|
@ -303,11 +303,7 @@ void motorDevInit(const motorDevConfig_t *motorConfig, uint16_t idlePulse, uint8
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_HAL_DRIVER)
|
|
||||||
IOConfigGPIOAF(motors[motorIndex].io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
IOConfigGPIOAF(motors[motorIndex].io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
||||||
#else
|
|
||||||
IOConfigGPIO(motors[motorIndex].io, IOCFG_AF_PP);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* standard PWM outputs */
|
/* standard PWM outputs */
|
||||||
// margin of safety is 4 periods when unsynced
|
// margin of safety is 4 periods when unsynced
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue