From bae7ee3f1d348c29f8eb604ce774d22757460927 Mon Sep 17 00:00:00 2001 From: RGIB Date: Thu, 24 Nov 2016 18:00:28 +0100 Subject: i9305 : fix magnetometer sensor Change-Id: I5e210e6fc81b23bff25f4ca46b94c30e36f50edb --- libsensors/AkmSensor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsensors/AkmSensor.cpp b/libsensors/AkmSensor.cpp index e7e0a4b..6eb10a4 100644 --- a/libsensors/AkmSensor.cpp +++ b/libsensors/AkmSensor.cpp @@ -227,6 +227,9 @@ int AkmSensor::readEvents(sensors_event_t* data, int count) if (type == EV_REL) { processEvent(event->code, event->value); mInputReader.next(); + } else if (type == EV_ABS) { + processEvent(event->code, event->value); + mInputReader.next(); } else if (type == EV_SYN) { int64_t time = timevalToNano(event->time); for (int j=0 ; count && mPendingMask && j