From a967c34271a9a138047d3f7b50981a354bffd45a Mon Sep 17 00:00:00 2001 From: rINanDO Date: Sat, 12 Mar 2016 22:00:37 +0100 Subject: i9100: libsensors: use CLOCK_BOOTTIME, not CLOCK_MONOTONIC. This fixes rotation issues without using the hack 'config_useSystemClockforRotationSensor'. Change-Id: I9b6afc46b4dfabc69e4d4ad215de7a9f2ea15347 --- libsensors/AkmSensor.cpp | 2 +- libsensors/SensorBase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsensors/AkmSensor.cpp b/libsensors/AkmSensor.cpp index e26e281..bab6f6c 100644 --- a/libsensors/AkmSensor.cpp +++ b/libsensors/AkmSensor.cpp @@ -253,7 +253,7 @@ int AkmSensor::readEvents(sensors_event_t* data, int count) processEvent(event->code, event->value); mInputReader.next(); } else if (type == EV_SYN) { - int64_t time = timevalToNano(event->time); + int64_t time = getTimestamp(); for (int j=0 ; count && mPendingMask && j