Changed accuracy for sensor handlers.
Samsung has requested to change orientation sensor
to use compass accuracy as the sensor accuracy number.
Change-Id: I9ad34d27f3485eefe85d551e7c025b5afbdf3ce0
Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
diff --git a/libsensors/MPLSensor.cpp b/libsensors/MPLSensor.cpp
index eeda7d0..314acfb 100644
--- a/libsensors/MPLSensor.cpp
+++ b/libsensors/MPLSensor.cpp
@@ -797,9 +797,7 @@
//ComputeAndOrientation(heading[0], euler, s->orientation.v);
calcOrientationSensor(rot_mat, s->orientation.v);
- s->orientation.status
- = ((mMpuAccuracy < estimateCompassAccuracy()) ? mMpuAccuracy
- : estimateCompassAccuracy());
+ s->orientation.status = estimateCompassAccuracy();
if (res == INV_SUCCESS)
*pending_mask |= (1 << index);