You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mu...@apache.org on 2015/07/27 18:43:15 UTC

cordova-plugin-device-motion git commit: CB-9339 Increase the default sensor accuracy

Repository: cordova-plugin-device-motion
Updated Branches:
  refs/heads/master e62e3fe89 -> b0f8e436e


CB-9339 Increase the default sensor accuracy


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/b0f8e436
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/b0f8e436
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/b0f8e436

Branch: refs/heads/master
Commit: b0f8e436efd7d0db586bc2165733ebe5467b8498
Parents: e62e3fe
Author: Murat Sutunc <su...@gmail.com>
Authored: Mon Jul 13 14:05:37 2015 -0700
Committer: Murat Sutunc <su...@gmail.com>
Committed: Mon Jul 13 14:05:37 2015 -0700

----------------------------------------------------------------------
 src/android/AccelListener.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/b0f8e436/src/android/AccelListener.java
----------------------------------------------------------------------
diff --git a/src/android/AccelListener.java b/src/android/AccelListener.java
index 3a0b8e5..e36f0db 100755
--- a/src/android/AccelListener.java
+++ b/src/android/AccelListener.java
@@ -52,7 +52,7 @@ public class AccelListener extends CordovaPlugin implements SensorEventListener
     private float x,y,z;                                // most recent acceleration values
     private long timestamp;                         // time of most recent value
     private int status;                                 // status of listener
-    private int accuracy = SensorManager.SENSOR_STATUS_UNRELIABLE;
+    private int accuracy = SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM;
 
     private SensorManager sensorManager;    // Sensor manager
     private Sensor mSensor;                           // Acceleration sensor returned by sensor manager


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org