Merge pull request #7573 from joelucid/bugfix_7548

Ensure all timer channels are initialized when using dshot burst #7548
This commit is contained in:
Michael Keller 2019-02-17 01:46:32 +13:00 committed by GitHub
commit fefa2a83e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 #ifdef USE_DSHOT_DMAR
if (useBurstDshot) { if (useBurstDshot) {
motor->timer->dmaBurstRef = dmaRef; motor->timer->dmaBurstRef = dmaRef;
#ifdef USE_DSHOT_TELEMETRY
if (!configureTimer) { motor->dmaRef = dmaRef;
motor->configured = true; #endif
return;
}
} else } else
#endif #endif
{ {