Merge pull request #1561 from betaflight/blckmn-patch-4

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

View File

@ -130,7 +130,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_PP, GPIO_SPEED_FREQ_VERY_HIGH, GPIO_PULLUP), timerHardware->alternateFunction);
__DMA1_CLK_ENABLE();