aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-27 11:23:29 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-03-01 18:32:07 +0100
commitda5b06a5df475b853368a895e92d80a1c1406d28 (patch)
treeebad68479eb69429693fa94bbee5bd6203e9d152
parentf9e525bbab886f3c6227c7dd286a60dc27f0d0db (diff)
downloadpx4-firmware-da5b06a5df475b853368a895e92d80a1c1406d28.tar.gz
px4-firmware-da5b06a5df475b853368a895e92d80a1c1406d28.tar.bz2
px4-firmware-da5b06a5df475b853368a895e92d80a1c1406d28.zip
land detector: Use less RAM
-rw-r--r--src/modules/land_detector/land_detector_main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/land_detector/land_detector_main.cpp b/src/modules/land_detector/land_detector_main.cpp
index 1e43e7ad5..011567e57 100644
--- a/src/modules/land_detector/land_detector_main.cpp
+++ b/src/modules/land_detector/land_detector_main.cpp
@@ -139,7 +139,7 @@ static int land_detector_start(const char *mode)
_landDetectorTaskID = task_spawn_cmd("land_detector",
SCHED_DEFAULT,
SCHED_PRIORITY_DEFAULT,
- 1200,
+ 1000,
(main_t)&land_detector_deamon_thread,
nullptr);
@@ -179,8 +179,7 @@ int land_detector_main(int argc, char *argv[])
{
if (argc < 1) {
- warnx("usage: land_detector {start|stop|status} [mode]\nmode can either be 'fixedwing' or 'multicopter'");
- exit(0);
+ goto exiterr;
}
if (argc >= 2 && !strcmp(argv[1], "start")) {
@@ -209,6 +208,8 @@ int land_detector_main(int argc, char *argv[])
}
}
- warn("usage: land_detector {start|stop|status} [mode]\nmode can either be 'fixedwing' or 'multicopter'");
+exiterr:
+ warnx("usage: land_detector {start|stop|status} [mode]");
+ warnx("mode can either be 'fixedwing' or 'multicopter'");
return 1;
}