Write the calibration as soon as compass gets a MEDIUM accuracy.

previously, we would wait for the device to be in a no motion
state for a few seconds -- which might never happen before the
sensors are turned off.

Change-Id: I94815b942b4d035ec1c549ed732548538adcd355
diff --git a/libsensors/MPLSensor.cpp b/libsensors/MPLSensor.cpp
index 8844f27..eeda7d0 100644
--- a/libsensors/MPLSensor.cpp
+++ b/libsensors/MPLSensor.cpp
@@ -636,7 +636,7 @@
     int rv;
 
     res = inv_get_compass_accuracy(&rv);
-    if(rv == SENSOR_STATUS_ACCURACY_HIGH) {
+    if(rv >= SENSOR_STATUS_ACCURACY_MEDIUM) {
          mHaveGoodCompassCal = true;	 
     }
     LOGE_IF(res != INV_SUCCESS, "error returned from inv_get_compass_accuracy");