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:
parent
89607c699b
commit
cafe727f3a
5 changed files with 9 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue