mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
INAV app: Fix commandline handling
Conflicts: src/modules/position_estimator_inav/position_estimator_inav_main.c
This commit is contained in:
parent
5e27b7bc31
commit
99d59971ac
@ -145,10 +145,9 @@ int position_estimator_inav_main(int argc, char *argv[])
|
||||
|
||||
inav_verbose_mode = false;
|
||||
|
||||
if (argc > 1)
|
||||
if (!strcmp(argv[2], "-v")) {
|
||||
inav_verbose_mode = true;
|
||||
}
|
||||
if (argc > 2 && !strcmp(argv[2], "-v")) {
|
||||
inav_verbose_mode = true;
|
||||
}
|
||||
|
||||
thread_should_exit = false;
|
||||
position_estimator_inav_task = px4_task_spawn_cmd("position_estimator_inav",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user