aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/lsm303d
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-08 12:22:45 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-15 10:17:01 +0100
commita74c7c8009a165944f6cc62189aa7d541800da83 (patch)
treec9eec59dda02c8fbb08e919e628f5ec8438f0d29 /src/drivers/lsm303d
parent56bc8430114ac32f9dc6b21c10809a41b640231d (diff)
downloadpx4-firmware-a74c7c8009a165944f6cc62189aa7d541800da83.tar.gz
px4-firmware-a74c7c8009a165944f6cc62189aa7d541800da83.tar.bz2
px4-firmware-a74c7c8009a165944f6cc62189aa7d541800da83.zip
LSM303D: Return argument in right format
Diffstat (limited to 'src/drivers/lsm303d')
-rw-r--r--src/drivers/lsm303d/lsm303d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp
index f42b31cdf..85ad74fdb 100644
--- a/src/drivers/lsm303d/lsm303d.cpp
+++ b/src/drivers/lsm303d/lsm303d.cpp
@@ -920,7 +920,7 @@ LSM303D::ioctl(struct file *filp, int cmd, unsigned long arg)
}
case ACCELIOCGLOWPASS:
- return _accel_filter_x.get_cutoff_freq();
+ return static_cast<int>(_accel_filter_x.get_cutoff_freq());
case ACCELIOCSSCALE: {
/* copy scale, but only if off by a few percent */