From e6a5dece8532077614d4d2cc9ed487276b56af7d Mon Sep 17 00:00:00 2001 From: Thorsten Laux Date: Thu, 14 Feb 2019 11:35:45 +0100 Subject: [PATCH] ensure all timer channels are initialized when using dshot burst --- src/main/drivers/pwm_output_dshot.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/drivers/pwm_output_dshot.c b/src/main/drivers/pwm_output_dshot.c index 2f594cb2a4..150f2e870f 100644 --- a/src/main/drivers/pwm_output_dshot.c +++ b/src/main/drivers/pwm_output_dshot.c @@ -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 {