forked from Archive/PX4-Autopilot
LSM303D: Return argument in right format
This commit is contained in:
parent
56bc843011
commit
a74c7c8009
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue