From 43a7f93723c948aac682f4eb8491caa68e084367 Mon Sep 17 00:00:00 2001 From: Mimoja Date: Sun, 19 Jul 2020 00:18:28 +0200 Subject: [PATCH] Fix build for statistics-disabled DSHOT telemetry The USE_DSHOT_TELEMETRY_STATS define was is gating a closing bracket '}', so that the scopes are breaking in case telemetry stats are not enabled. This commit fixes this behaviour by moving the closing bracket out of the ifdef. Signed-off-by: Mimoja --- src/main/drivers/pwm_output_dshot_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/pwm_output_dshot_shared.c b/src/main/drivers/pwm_output_dshot_shared.c index 32dc0cd4d..ca9504473 100644 --- a/src/main/drivers/pwm_output_dshot_shared.c +++ b/src/main/drivers/pwm_output_dshot_shared.c @@ -248,8 +248,8 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void) } #ifdef USE_DSHOT_TELEMETRY_STATS updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs); - } #endif + } } pwmDshotSetDirectionOutput(&dmaMotors[i]); }