1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

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 <git@mimoja.de>
This commit is contained in:
Mimoja 2020-07-19 00:18:28 +02:00 committed by GitHub
parent f8f01c9fa3
commit 43a7f93723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,8 +248,8 @@ FAST_CODE_NOINLINE bool pwmStartDshotMotorUpdate(void)
}
#ifdef USE_DSHOT_TELEMETRY_STATS
updateDshotTelemetryQuality(&dshotTelemetryQuality[i], validTelemetryPacket, currentTimeMs);
}
#endif
}
}
pwmDshotSetDirectionOutput(&dmaMotors[i]);
}