diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 5c5b82a834..aff695a78e 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -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 {