mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
inhibit change if WP active
This commit is contained in:
parent
b37548c418
commit
11bc996ecf
2 changed files with 2 additions and 2 deletions
|
@ -3218,7 +3218,7 @@ bool updateWpMissionChange(void)
|
|||
* Note: On disarm wpMissionStartIndex set to 0, posControl.waypointCount set to totalMultiMissionWpCount.
|
||||
* wpMissionStartIndex and posControl.waypointCount reset for flight on arming */
|
||||
|
||||
if (posControl.multiMissionCount <= 1 || posControl.wpPlannerActiveWPIndex) {
|
||||
if (posControl.multiMissionCount <= 1 || posControl.wpPlannerActiveWPIndex || FLIGHT_MODE(NAV_WP_MODE)) {
|
||||
posControl.multiMissionCount = posControl.wpPlannerActiveWPIndex ? 0 : posControl.multiMissionCount;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue