Merge pull request #10006 from etracer65/crash_flip_first_arming

This commit is contained in:
Michael Keller 2020-07-12 14:12:31 +12:00 committed by GitHub
commit f8f01c9fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -433,7 +433,9 @@ void updateArmingStatus(void)
void disarm(flightLogDisarmReason_e reason)
{
if (ARMING_FLAG(ARMED)) {
ENABLE_ARMING_FLAG(WAS_EVER_ARMED);
if (!flipOverAfterCrashActive) {
ENABLE_ARMING_FLAG(WAS_EVER_ARMED);
}
DISABLE_ARMING_FLAG(ARMED);
lastDisarmTimeUs = micros();