LSM303D: Return argument in right format

This commit is contained in:
Lorenz Meier 2015-02-08 12:22:45 +01:00
parent 56bc843011
commit a74c7c8009
1 changed files with 1 additions and 1 deletions

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 */