1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Update navigation.c

This commit is contained in:
breadoven 2022-12-17 22:08:04 +00:00
parent ce7ee28677
commit 99b03c70be

View file

@ -3629,8 +3629,8 @@ static bool isManualEmergencyLandingActivated(void)
if (timeout && currentTimeMs > timeout) {
timeout += 500;
counter--;
if (counter <= 0) {
counter -= counter ? 1 : 0;
if (!counter) {
timeout = 0;
}
}
@ -3643,7 +3643,6 @@ static bool isManualEmergencyLandingActivated(void)
} else {
toggle = true;
}
constrain(counter, 0, 4);
return counter >= 4;
}