ensure all timer channels are initialized when using dshot burst

This commit is contained in:
Thorsten Laux 2019-02-14 11:35:45 +01:00
parent fc8f9130e4
commit e6a5dece85
1 changed files with 3 additions and 5 deletions

View File

@ -467,11 +467,9 @@ void pwmDshotMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t m
#ifdef USE_DSHOT_DMAR
if (useBurstDshot) {
motor->timer->dmaBurstRef = dmaRef;
if (!configureTimer) {
motor->configured = true;
return;
}
#ifdef USE_DSHOT_TELEMETRY
motor->dmaRef = dmaRef;
#endif
} else
#endif
{