1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Fix Dshot telemetry (#13140)

* Fix Dshot telemetry

* Revert check per review
This commit is contained in:
Mark Haslinghuis 2023-11-23 22:56:14 +01:00 committed by GitHub
parent 89607c699b
commit cafe727f3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 13 deletions

View file

@ -360,13 +360,12 @@ void updateArmingStatus(void)
}
#endif
#ifdef USE_RPM_FILTER
// USE_RPM_FILTER will only be defined if USE_DSHOT and USE_DSHOT_TELEMETRY are defined
// If the RPM filter is enabled and any motor isn't providing telemetry, then disable arming
if (isRpmFilterEnabled() && !isDshotTelemetryActive()) {
setArmingDisabled(ARMING_DISABLED_RPMFILTER);
#ifdef USE_DSHOT_TELEMETRY
// If Dshot Telemetry is enabled and any motor isn't providing telemetry, then disable arming
if (motorConfig()->dev.useDshotTelemetry && !isDshotTelemetryActive()) {
setArmingDisabled(ARMING_DISABLED_DSHOT_TELEM);
} else {
unsetArmingDisabled(ARMING_DISABLED_RPMFILTER);
unsetArmingDisabled(ARMING_DISABLED_DSHOT_TELEM);
}
#endif