aboutsummaryrefslogtreecommitdiff
path: root/src/modules/attitude_estimator_ekf
diff options
context:
space:
mode:
authorDaniel Agar <daniel@agar.ca>2015-03-17 13:37:01 -0400
committerLorenz Meier <lm@inf.ethz.ch>2015-04-18 12:02:58 +0200
commit2e824bbeea8787a3166ce47cad90e622a3678b25 (patch)
tree6ad6fcbcdf36748fbd1dab6ed3f4b843ed403606 /src/modules/attitude_estimator_ekf
parent63d741e3686d4dd1fe872426aec0b1570f897628 (diff)
downloadpx4-firmware-2e824bbeea8787a3166ce47cad90e622a3678b25.tar.gz
px4-firmware-2e824bbeea8787a3166ce47cad90e622a3678b25.tar.bz2
px4-firmware-2e824bbeea8787a3166ce47cad90e622a3678b25.zip
fix incorrect argc < 1 check for no arguments
-requiring arguments should be argc < 2
Diffstat (limited to 'src/modules/attitude_estimator_ekf')
-rwxr-xr-xsrc/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
index c60d70b9f..9bb9393c5 100755
--- a/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
+++ b/src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
@@ -118,8 +118,9 @@ usage(const char *reason)
*/
int attitude_estimator_ekf_main(int argc, char *argv[])
{
- if (argc < 1)
+ if (argc < 2) {
usage("missing command");
+ }
if (!strcmp(argv[1], "start")) {