summaryrefslogtreecommitdiffstats
path: root/libsensors/GyroSensor.cpp
diff options
context:
space:
mode:
authortim.sk.lee <tim.sk.lee@samsung.com>2010-10-28 00:33:01 -0700
committerMaarten Hooft <mthooft@google.com>2010-11-09 21:06:33 -0800
commit286d99b62709872dc9f891991cccc1272e884cb7 (patch)
treececb132f223bd3a223240aef20e42fd810d12fdf /libsensors/GyroSensor.cpp
parent1f5810e62f6bd75d850c98c3263dbcc4c7885198 (diff)
downloaddevice_samsung_crespo-286d99b62709872dc9f891991cccc1272e884cb7.zip
device_samsung_crespo-286d99b62709872dc9f891991cccc1272e884cb7.tar.gz
device_samsung_crespo-286d99b62709872dc9f891991cccc1272e884cb7.tar.bz2
S5PC11X: SENSOR: Mag, accel, orientation and gyro get the cotinuous events
By using EV_REL instead of EV_ABS, sensors can get continous events even though they're not changed. Change-Id: I2341c0d1a1cdec223328796355ebf0210a9dea5e Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
Diffstat (limited to 'libsensors/GyroSensor.cpp')
-rw-r--r--libsensors/GyroSensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/GyroSensor.cpp b/libsensors/GyroSensor.cpp
index c478e40..7f6b864 100644
--- a/libsensors/GyroSensor.cpp
+++ b/libsensors/GyroSensor.cpp
@@ -143,7 +143,7 @@ again:
#endif
while (count && mInputReader.readEvent(&event)) {
int type = event->type;
- if (type == EV_ABS) {
+ if (type == EV_REL) {
float value = event->value;
if (event->code == EVENT_TYPE_GYRO_X) {
mPendingEvent.data[0] = value * CONVERT_GYRO_X;