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:
parent
ce7ee28677
commit
99b03c70be
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue