Browse Source

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
sbg
Nik Langrind 5 years ago committed by Lorenz Meier
parent
commit
c34b7019a4
  1. 2
      src/drivers/px4io/px4io.cpp

2
src/drivers/px4io/px4io.cpp

@ -3012,7 +3012,7 @@ start(int argc, char *argv[]) @@ -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…
Cancel
Save