forked from Archive/PX4-Autopilot
Fix mistake in previoust commit, which could the "hil" argument to
be ignored if px4io were to be started with two or more optional arguments
This commit is contained in:
parent
1c4a8e7c11
commit
c34b7019a4
|
@ -3012,7 +3012,7 @@ start(int argc, char *argv[])
|
|||
if (!strcmp(argv[extra_args], "norc")) {
|
||||
rc_handling_disabled = true;
|
||||
|
||||
} else if (!strcmp(argv[1], "hil")) {
|
||||
} else if (!strcmp(argv[extra_args], "hil")) {
|
||||
hitl_mode = true;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue