MPU6K: Start handler startup and stack review and adjustments

This commit is contained in:
Lorenz Meier
2014-07-16 07:55:53 +02:00
parent 91bedc5c1c
commit 5b38b5e371
2 changed files with 6 additions and 4 deletions
+2 -3
View File
@@ -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
+4 -1
View File
@@ -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 */