mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Clear crash flip mode flag on disarming (#5566)
Previously the flag was only set during arming so after crash flip mode was used the flag would stay active until the next arming. This caused the "CRASH FLIP" warning message to erroneously display on the OSD when disarmed.
This commit is contained in:
parent
8bbd92cb43
commit
a7eccffa38
1 changed files with 3 additions and 0 deletions
|
@ -180,6 +180,9 @@ void updateArmingStatus(void)
|
|||
unsetArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
|
||||
}
|
||||
|
||||
// Clear the crash flip active status
|
||||
flipOverAfterCrashMode = false;
|
||||
|
||||
// If switch is used for arming then check it is not defaulting to on when the RX link recovers from a fault
|
||||
if (!isUsingSticksForArming()) {
|
||||
static bool hadRx = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue