From 0fc28367115f458c14e16240acf7f76efbb6d9df Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Mon, 7 Mar 2016 21:47:04 +1100 Subject: n7100: libsensors: don't floor accelerometer value this is a leftover from t0, here it causes broken autorotate and slow response times on the lockscreen Change-Id: I30d682a65447d7f846d277ca4f9b63315b2ca526 --- libsensors/AccelSensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsensors/AccelSensor.cpp b/libsensors/AccelSensor.cpp index 0b05ed5..7b6ba67 100644 --- a/libsensors/AccelSensor.cpp +++ b/libsensors/AccelSensor.cpp @@ -99,7 +99,7 @@ int AccelSensor::setDelay(int32_t handle, int64_t ns) fd = open(input_sysfs_path, O_RDWR); if (fd >= 0) { char buf[80]; - sprintf(buf, "%lld", ns / 10000000 * 10); // Some flooring to match stock value + sprintf(buf, "%lld", ns); write(fd, buf, strlen(buf)+1); close(fd); return 0; -- cgit v1.1