diff options
author | RGIB <gibellini.roberto@gmail.com> | 2016-11-24 18:00:28 +0100 |
---|---|---|
committer | RGIB <gibellini.roberto@gmail.com> | 2016-11-24 18:00:28 +0100 |
commit | bae7ee3f1d348c29f8eb604ce774d22757460927 (patch) | |
tree | a458e91fe3f7b6064a64d3b8f905e22f1e0b576a /libsensors/AkmSensor.cpp | |
parent | b5a493f5dd516433cca81dd69360b6e17cbd54ce (diff) | |
download | device_samsung_i9305-bae7ee3f1d348c29f8eb604ce774d22757460927.zip device_samsung_i9305-bae7ee3f1d348c29f8eb604ce774d22757460927.tar.gz device_samsung_i9305-bae7ee3f1d348c29f8eb604ce774d22757460927.tar.bz2 |
i9305 : fix magnetometer sensor
Change-Id: I5e210e6fc81b23bff25f4ca46b94c30e36f50edb
Diffstat (limited to 'libsensors/AkmSensor.cpp')
-rw-r--r-- | libsensors/AkmSensor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<numSensors ; j++) { |