1
0
Fork 0
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:
jflyper 2018-02-15 03:40:11 +09:00
parent d284ae31ad
commit 1bc2e756f5

View file

@ -303,11 +303,7 @@ void motorDevInit(const motorDevConfig_t *motorConfig, uint16_t idlePulse, uint8
}
#endif
#if defined(USE_HAL_DRIVER)
IOConfigGPIOAF(motors[motorIndex].io, IOCFG_AF_PP, timerHardware->alternateFunction);
#else
IOConfigGPIO(motors[motorIndex].io, IOCFG_AF_PP);
#endif
/* standard PWM outputs */
// margin of safety is 4 periods when unsynced