LSM303D: Return argument in right format

This commit is contained in:
Lorenz Meier
2015-02-15 10:17:01 +01:00
parent 56bc843011
commit a74c7c8009
+1 -1
View File
@@ -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 */