diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-05 08:07:22 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-05 08:07:22 -0700 |
commit | 02df2b8fe5e4524c06b8009ced0db00d549373c1 (patch) | |
tree | 1b7ff8cdd5d2075247a39a48c3cd9d8faa3f10fa /src | |
parent | 84f44107dd3b4ea767f4d161631af034199a78d3 (diff) | |
parent | e8c309fb1442f281051874ca6d82af9b52605c3b (diff) | |
download | px4-firmware-02df2b8fe5e4524c06b8009ced0db00d549373c1.tar.gz px4-firmware-02df2b8fe5e4524c06b8009ced0db00d549373c1.tar.bz2 px4-firmware-02df2b8fe5e4524c06b8009ced0db00d549373c1.zip |
Merge pull request #380 from julianoes/hotfix_mag_calib
Workaround to prevent crash during mag calibration
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/hmc5883/hmc5883.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp index a5229b237..3ede90a17 100644 --- a/src/drivers/hmc5883/hmc5883.cpp +++ b/src/drivers/hmc5883/hmc5883.cpp @@ -962,11 +962,12 @@ int HMC5883::calibrate(struct file *filp, unsigned enable) warnx("sampling 500 samples for scaling offset"); /* set the queue depth to 10 */ - if (OK != ioctl(filp, SENSORIOCSQUEUEDEPTH, 10)) { - warn("failed to set queue depth"); - ret = 1; - goto out; - } + /* don't do this for now, it can lead to a crash in start() respectively work_queue() */ +// if (OK != ioctl(filp, SENSORIOCSQUEUEDEPTH, 10)) { +// warn("failed to set queue depth"); +// ret = 1; +// goto out; +// } /* start the sensor polling at 50 Hz */ if (OK != ioctl(filp, SENSORIOCSPOLLRATE, 50)) { |