mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #9937 from mikeller/refactor_dshot_enabled_checks
Refactored Dshot enabled checks.
This commit is contained in:
commit
9ae9b32aad
3 changed files with 20 additions and 8 deletions
|
@ -276,7 +276,7 @@ void updateArmingStatus(void)
|
|||
// We also need to prevent arming until it's possible to send DSHOT commands.
|
||||
// Otherwise if the initial arming is in crash-flip the motor direction commands
|
||||
// might not be sent.
|
||||
&& (!isMotorProtocolDshot() || dshotCommandsAreEnabled(DSHOT_CMD_TYPE_INLINE))
|
||||
&& (!isMotorProtocolDshot() || dshotStreamingCommandsAreEnabled())
|
||||
#endif
|
||||
) {
|
||||
// If so, unset the grace time arming disable flag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue