INAV app: Fix commandline handling

This commit is contained in:
Lorenz Meier 2015-06-28 13:35:55 +02:00
parent ba68b70b0b
commit 60b8c28be2
1 changed files with 4 additions and 5 deletions

View File

@ -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",