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:
Nik Langrind 2019-11-18 11:57:05 -05:00 committed by Lorenz Meier
parent 1c4a8e7c11
commit c34b7019a4
1 changed files with 1 additions and 1 deletions

View File

@ -3012,7 +3012,7 @@ start(int argc, char *argv[])
if (!strcmp(argv[extra_args], "norc")) { if (!strcmp(argv[extra_args], "norc")) {
rc_handling_disabled = true; rc_handling_disabled = true;
} else if (!strcmp(argv[1], "hil")) { } else if (!strcmp(argv[extra_args], "hil")) {
hitl_mode = true; hitl_mode = true;
} else { } else {