1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #3938 from mikeller/fix_dshot_command_all_motors

Enable only DMA for channels that are used.
This commit is contained in:
Michael Keller 2017-10-10 00:35:24 +13:00 committed by GitHub
commit 624e9b64b5
4 changed files with 6 additions and 4 deletions

View file

@ -120,6 +120,7 @@ void pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t m
}
motor->timerDmaSource = timerDmaSource(timerHardware->channel);
motor->timer = &dmaMotorTimers[timerIndex];
dmaMotorTimers[timerIndex].timerDmaSources |= motor->timerDmaSource;
/* Set the parameters to be configured */