From caf751cdaf5edcc58b98a85c119259b53bddca21 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 23 Nov 2011 16:27:40 -0800 Subject: [PATCH] Bug 705009: Report DeviceMotion values in units of m/s^2, not Gs, per current spec. r=dougt --- embedding/android/GeckoEvent.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embedding/android/GeckoEvent.java b/embedding/android/GeckoEvent.java index c164f019e9f..42adfcbcf06 100644 --- a/embedding/android/GeckoEvent.java +++ b/embedding/android/GeckoEvent.java @@ -148,9 +148,9 @@ public class GeckoEvent { if (s.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { mType = ACCELERATION_EVENT; - mX = s.values[0] / SensorManager.GRAVITY_EARTH; - mY = s.values[1] / SensorManager.GRAVITY_EARTH; - mZ = s.values[2] / SensorManager.GRAVITY_EARTH; + mX = s.values[0]; + mY = s.values[1]; + mZ = s.values[2]; } else { mType = ORIENTATION_EVENT;