summaryrefslogtreecommitdiffstats
path: root/libsensors/GyroSensor.cpp
diff options
context:
space:
mode:
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;