aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/mpu6000
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-07-16 07:55:53 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-07-16 07:55:53 +0200
commit5b38b5e37170ffb079ef228f117f7e8b594353c8 (patch)
treec0fa80878ff047370080277ae210050c70bf2f36 /src/drivers/mpu6000
parent91bedc5c1c84fa79945f32462dbe3fe30c0ff5e4 (diff)
downloadpx4-firmware-5b38b5e37170ffb079ef228f117f7e8b594353c8.tar.gz
px4-firmware-5b38b5e37170ffb079ef228f117f7e8b594353c8.tar.bz2
px4-firmware-5b38b5e37170ffb079ef228f117f7e8b594353c8.zip
MPU6K: Start handler startup and stack review and adjustments
Diffstat (limited to 'src/drivers/mpu6000')
-rw-r--r--src/drivers/mpu6000/module.mk5
-rw-r--r--src/drivers/mpu6000/mpu6000.cpp5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/drivers/mpu6000/module.mk b/src/drivers/mpu6000/module.mk
index c7d9cd3ef..6087e1509 100644
--- a/src/drivers/mpu6000/module.mk
+++ b/src/drivers/mpu6000/module.mk
@@ -37,7 +37,6 @@
MODULE_COMMAND = mpu6000
-# XXX seems excessive, check if 2048 is not sufficient
-MODULE_STACKSIZE = 4096
-
SRCS = mpu6000.cpp
+
+MODULE_STACKSIZE = 1200
diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp
index 1b3a96a0d..442f0a37c 100644
--- a/src/drivers/mpu6000/mpu6000.cpp
+++ b/src/drivers/mpu6000/mpu6000.cpp
@@ -1437,6 +1437,9 @@ void usage();
/**
* Start the driver.
+ *
+ * This function only returns if the driver is up and running
+ * or failed to detect the sensor.
*/
void
start(bool external_bus, enum Rotation rotation)
@@ -1507,7 +1510,7 @@ test(bool external_bus)
int fd = open(path_accel, O_RDONLY);
if (fd < 0)
- err(1, "%s open failed (try 'mpu6000 start' if the driver is not running)",
+ err(1, "%s open failed (try 'mpu6000 start')",
path_accel);
/* get the driver */