summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authortim.sk.lee <tim.sk.lee@samsung.com>2010-10-08 18:14:52 -0700
committerBrian Swetland <swetland@google.com>2010-10-08 21:31:37 -0700
commit1dce448438714fcbd354e60be6660a748be3da77 (patch)
treedd3593e040d8ca0ed9cd75c190b913dfc4bcff63 /libsensors
parentac77f6b5cb155548abb439085466a4f21704a889 (diff)
downloaddevice_samsung_crespo-1dce448438714fcbd354e60be6660a748be3da77.tar.gz
device_samsung_crespo-1dce448438714fcbd354e60be6660a748be3da77.tar.bz2
device_samsung_crespo-1dce448438714fcbd354e60be6660a748be3da77.zip
S5PC11X: SENSOR: Change accelerometer's CONVERT_A value
Because the kernel now passes the sum of accel values instead of each raw value Change-Id: Id5d254fd3200a778811f52df89c4fc286fe91613 Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/sensors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsensors/sensors.h b/libsensors/sensors.h
index b8359ee..008aad2 100644
--- a/libsensors/sensors.h
+++ b/libsensors/sensors.h
@@ -81,10 +81,10 @@ __BEGIN_DECLS
// 720 LSG = 1G
#define LSG (720.0f)
-
+#define NUMOFACCDATA 8
// conversion of acceleration data to SI units (m/s^2)
-#define CONVERT_A (GRAVITY_EARTH / LSG)
+#define CONVERT_A (GRAVITY_EARTH / LSG / NUMOFACCDATA)
#define CONVERT_A_X (CONVERT_A)
#define CONVERT_A_Y (-CONVERT_A)
#define CONVERT_A_Z (-CONVERT_A)