Skip to content

Commit

Permalink
Merge pull request iNavFlight#9947 from breadoven/abo_nav_improvements
Browse files Browse the repository at this point in the history
Minor Nav code improvements
  • Loading branch information
DzikuVx authored Apr 21, 2024
2 parents 7246709 + 79e974d commit 66e4526
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 96 deletions.
4 changes: 4 additions & 0 deletions src/main/fc/fc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ static void updateArmingStatus(void)
DISABLE_ARMING_FLAG(ARMING_DISABLED_NO_PREARM);
}

if (ARMING_FLAG(ARMING_DISABLED_LANDING_DETECTED) && !IS_RC_MODE_ACTIVE(BOXARM)) {
DISABLE_ARMING_FLAG(ARMING_DISABLED_LANDING_DETECTED);
}

/* CHECK: Arming switch */
// If arming is disabled and the ARM switch is on
// Note that this should be last check so all other blockers could be cleared correctly
Expand Down
Loading

0 comments on commit 66e4526

Please sign in to comment.