1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Use the cached value of useDshotTelemetry to ensure consistent runtime use if dshot_bidir is changed (#13589)

This commit is contained in:
Steve Evans 2024-04-28 00:31:50 +01:00 committed by GitHub
parent 54377940e0
commit 565de1b68b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 19 additions and 20 deletions

View file

@ -608,7 +608,7 @@ static int32_t getAverageEscRpm(void)
}
#endif
#ifdef USE_DSHOT_TELEMETRY
if (motorConfig()->dev.useDshotTelemetry) {
if (useDshotTelemetry) {
return lrintf(getDshotRpmAverage());
}
#endif