forked from Archive/PX4-Autopilot
INAV app: Fix commandline handling
This commit is contained in:
parent
ba68b70b0b
commit
60b8c28be2
|
@ -1,6 +1,6 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013, 2014 PX4 Development Team. All rights reserved.
|
* Copyright (c) 2013-2015 PX4 Development Team. All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
|
@ -147,10 +147,9 @@ int position_estimator_inav_main(int argc, char *argv[])
|
||||||
|
|
||||||
verbose_mode = false;
|
verbose_mode = false;
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 2 && !strcmp(argv[2], "-v")) {
|
||||||
if (!strcmp(argv[2], "-v")) {
|
verbose_mode = true;
|
||||||
verbose_mode = true;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
thread_should_exit = false;
|
thread_should_exit = false;
|
||||||
position_estimator_inav_task = task_spawn_cmd("position_estimator_inav",
|
position_estimator_inav_task = task_spawn_cmd("position_estimator_inav",
|
||||||
|
|
Loading…
Reference in New Issue