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