diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-15 17:19:21 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-15 17:19:21 +0100 |
commit | df5e4d19042985bd567845dfa464170c169829b4 (patch) | |
tree | b706e225daa832b354dd2f933382d818db4a7bf9 /apps/drivers/hmc5883/hmc5883.cpp | |
parent | 74d543cfc9e2d63caf2d10b4a93227608a2c2930 (diff) | |
download | px4-firmware-df5e4d19042985bd567845dfa464170c169829b4.tar.gz px4-firmware-df5e4d19042985bd567845dfa464170c169829b4.tar.bz2 px4-firmware-df5e4d19042985bd567845dfa464170c169829b4.zip |
Improved self-test logic
Diffstat (limited to 'apps/drivers/hmc5883/hmc5883.cpp')
-rw-r--r-- | apps/drivers/hmc5883/hmc5883.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/drivers/hmc5883/hmc5883.cpp b/apps/drivers/hmc5883/hmc5883.cpp index e44341639..3849a2e05 100644 --- a/apps/drivers/hmc5883/hmc5883.cpp +++ b/apps/drivers/hmc5883/hmc5883.cpp @@ -634,7 +634,9 @@ HMC5883::ioctl(struct file *filp, int cmd, unsigned long arg) case MAGIOCSSCALE: /* set new scale factors */ memcpy(&_scale, (mag_scale *)arg, sizeof(_scale)); - return check_calibration(); + /* check calibration, but not actually return an error */ + (void)check_calibration(); + return 0; case MAGIOCGSCALE: /* copy out scale factors */ |