Magnetometer data is not update

Magnetometer is not updated during a read operation, because the function "lsm303d_mag::measure" is not called.

”!!!JUST A GUESS!!!“
This commit is contained in:
Liio Chen
2014-05-29 17:42:05 +08:00
parent 83edab4d59
commit bb6b442ca6
+1 -1
View File
@@ -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))