diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-03 03:39:22 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-03 03:39:22 -0700 |
commit | a3c238579d8b3325a924f01c7ae77ff494ac73f6 (patch) | |
tree | d3886d0908e304e0c876953dee863df3c4d7c41f /src/drivers/lsm303d/lsm303d.cpp | |
parent | ad811304c89d00d6432ec871916b7a82c8b3cbe7 (diff) | |
parent | bb6b442ca66a8349eb934a43b5886f44c2b7ab87 (diff) | |
download | px4-firmware-a3c238579d8b3325a924f01c7ae77ff494ac73f6.tar.gz px4-firmware-a3c238579d8b3325a924f01c7ae77ff494ac73f6.tar.bz2 px4-firmware-a3c238579d8b3325a924f01c7ae77ff494ac73f6.zip |
Merge pull request #1023 from ultrasystem/patch-1
Magnetometer data is not update
Diffstat (limited to 'src/drivers/lsm303d/lsm303d.cpp')
-rw-r--r-- | src/drivers/lsm303d/lsm303d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp index 4ca8b5e42..8bf76dcc3 100644 --- a/src/drivers/lsm303d/lsm303d.cpp +++ b/src/drivers/lsm303d/lsm303d.cpp @@ -880,7 +880,7 @@ LSM303D::mag_read(struct file *filp, char *buffer, size_t buflen) /* manual measurement */ _mag_reports->flush(); - measure(); + _mag->measure(); /* measurement will have generated a report, copy it out */ if (_mag_reports->get(mrb)) |