diff options
author | tim.sk.lee <tim.sk.lee@samsung.com> | 2010-10-28 00:33:01 -0700 |
---|---|---|
committer | Maarten Hooft <mthooft@google.com> | 2010-11-09 21:06:33 -0800 |
commit | 286d99b62709872dc9f891991cccc1272e884cb7 (patch) | |
tree | cecb132f223bd3a223240aef20e42fd810d12fdf /libsensors/GyroSensor.cpp | |
parent | 1f5810e62f6bd75d850c98c3263dbcc4c7885198 (diff) | |
download | device_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.cpp | 2 |
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; |