Merge pull request #1560 from betaflight/blckmn-patch-3-1

Fixed missing motor index on F4 DSHOT init
This commit is contained in:
J Blackman 2016-11-15 10:20:53 +11:00 committed by GitHub
commit 97cda56322
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ void pwmDigitalMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t
const uint8_t timerIndex = getTimerIndex(timer);
const bool configureTimer = (timerIndex == dmaMotorTimerCount-1);
IOInit(motorIO, OWNER_MOTOR, 0);
IOInit(motorIO, OWNER_MOTOR, RESOURCE_INDEX(motorIndex));
IOConfigGPIOAF(motorIO, IO_CONFIG(GPIO_Mode_AF, GPIO_Speed_50MHz, GPIO_OType_PP, GPIO_PuPd_UP), timerHardware->alternateFunction);
if (configureTimer) {