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:
parent
54377940e0
commit
565de1b68b
11 changed files with 19 additions and 20 deletions
|
@ -608,7 +608,7 @@ static int32_t getAverageEscRpm(void)
|
|||
}
|
||||
#endif
|
||||
#ifdef USE_DSHOT_TELEMETRY
|
||||
if (motorConfig()->dev.useDshotTelemetry) {
|
||||
if (useDshotTelemetry) {
|
||||
return lrintf(getDshotRpmAverage());
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue