1
0
Fork 0
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:
breadoven 2022-09-04 12:38:43 +01:00
parent b37548c418
commit 11bc996ecf
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}