mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 06:14:14 +08:00
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:
committed by
Lorenz Meier
parent
1c4a8e7c11
commit
c34b7019a4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user