aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hmc5883
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-08-20 20:02:06 +0200
committerJulian Oes <julian@oes.ch>2013-08-20 20:02:06 +0200
commitf5c92314f16fde650ee6f2f4fa20b7c2680a4b00 (patch)
tree9bc236d6c9f3baae999ff94bfb88701e5b93cd07 /src/drivers/hmc5883
parent307c9e52c775de2ce09ff4abf0bc1fb5db6dd41e (diff)
downloadpx4-firmware-f5c92314f16fde650ee6f2f4fa20b7c2680a4b00.tar.gz
px4-firmware-f5c92314f16fde650ee6f2f4fa20b7c2680a4b00.tar.bz2
px4-firmware-f5c92314f16fde650ee6f2f4fa20b7c2680a4b00.zip
Improved LSM303D driver, plus some fixes to the HMC5883
Diffstat (limited to 'src/drivers/hmc5883')
-rw-r--r--src/drivers/hmc5883/hmc5883.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 44304fc22..1afc16a9a 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -637,13 +637,18 @@ HMC5883::ioctl(struct file *filp, int cmd, unsigned long arg)
return -EINVAL;
case MAGIOCSSAMPLERATE:
+ case MAGIOCGSAMPLERATE:
/* not supported, always 1 sample per poll */
return -EINVAL;
case MAGIOCSRANGE:
return set_range(arg);
+ case MAGIOCGRANGE:
+ return _range_ga;
+
case MAGIOCSLOWPASS:
+ case MAGIOCGLOWPASS:
/* not supported, no internal filtering */
return -EINVAL;