Skip to content

Commit

Permalink
Fix mistake in previoust commit, which could the "hil" argument to
Browse files Browse the repository at this point in the history
be ignored if px4io were to be started with two or more optional arguments
  • Loading branch information
langrind authored and LorenzMeier committed Nov 19, 2019
1 parent 1c4a8e7 commit c34b701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/px4io/px4io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c34b701

Please sign in to comment.