1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Fix compilation error for F1 targets

This commit is contained in:
Bruce Luckcuck 2018-02-25 15:59:11 -05:00
parent b0ff928afd
commit ecc0125672

View file

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