mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
add SET_POI and SET_HEAD to WP types recognised by CLI wp command (#6418)
This commit is contained in:
parent
220a43ec86
commit
1401a9997d
1 changed files with 5 additions and 5 deletions
|
@ -1457,7 +1457,7 @@ static void cliWaypoints(char *cmdline)
|
|||
|
||||
if (!(validArgumentCount == 6 || validArgumentCount == 8)) {
|
||||
cliShowParseError();
|
||||
} else if (!(action == 0 || action == NAV_WP_ACTION_WAYPOINT || action == NAV_WP_ACTION_RTH || action == NAV_WP_ACTION_JUMP || action == NAV_WP_ACTION_HOLD_TIME || action == NAV_WP_ACTION_LAND) || (p1 < 0) || !(flag == 0 || flag == NAV_WP_FLAG_LAST)) {
|
||||
} else if (!(action == 0 || action == NAV_WP_ACTION_WAYPOINT || action == NAV_WP_ACTION_RTH || action == NAV_WP_ACTION_JUMP || action == NAV_WP_ACTION_HOLD_TIME || action == NAV_WP_ACTION_LAND || action == NAV_WP_ACTION_SET_POI || action == NAV_WP_ACTION_SET_HEAD) || !(flag == 0 || flag == NAV_WP_FLAG_LAST)) {
|
||||
cliShowParseError();
|
||||
} else {
|
||||
posControl.waypointList[i].action = action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue