aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-09-08 22:27:31 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-09-08 22:27:31 +0200
commita7bff9f4486ab7012982e37030a704f7c82c2b14 (patch)
tree766987068aef0067bb436adcc2a83f0c36c4dfac
parent8bd018c5611dddd914fd108965526945b31d5944 (diff)
parent7866b90477c1eb929c6dbf655b5c287a3abae5c4 (diff)
downloadpx4-firmware-a7bff9f4486ab7012982e37030a704f7c82c2b14.tar.gz
px4-firmware-a7bff9f4486ab7012982e37030a704f7c82c2b14.tar.bz2
px4-firmware-a7bff9f4486ab7012982e37030a704f7c82c2b14.zip
Merge branch 'master' of github.com:PX4/Firmware into fixedwing_l1
-rw-r--r--src/drivers/hmc5883/hmc5883.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 3ede90a17..0de82c304 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -1317,6 +1317,10 @@ test()
if (fd < 0)
err(1, "%s open failed (try 'hmc5883 start' if the driver is not running", MAG_DEVICE_PATH);
+ /* set the queue depth to 10 */
+ if (OK != ioctl(fd, SENSORIOCSQUEUEDEPTH, 10))
+ errx(1, "failed to set queue depth");
+
/* do a simple demand read */
sz = read(fd, &report, sizeof(report));
@@ -1332,7 +1336,7 @@ test()
errx(1, "failed to get if mag is onboard or external");
warnx("device active: %s", ret ? "external" : "onboard");
- /* set the queue depth to 10 */
+ /* set the queue depth to 5 */
if (OK != ioctl(fd, SENSORIOCSQUEUEDEPTH, 10))
errx(1, "failed to set queue depth");