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:
commit
624e9b64b5
4 changed files with 6 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue