From c34b7019a48418fdad236c49a8db9ee54b51f5cd Mon Sep 17 00:00:00 2001 From: Nik Langrind Date: Mon, 18 Nov 2019 11:57:05 -0500 Subject: [PATCH] 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 --- src/drivers/px4io/px4io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {