summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-03-07 21:47:04 +1100
committertilaksidduram <tilaksidduram@gmail.com>2016-04-13 21:23:17 +0530
commit0fc28367115f458c14e16240acf7f76efbb6d9df (patch)
tree38513b0f92ebac5346f0b6efa44bcde782ef906f
parent1c76a1b3a2d18c95a441e86f771e27494905dabc (diff)
downloaddevice_samsung_n7100-0fc28367115f458c14e16240acf7f76efbb6d9df.zip
device_samsung_n7100-0fc28367115f458c14e16240acf7f76efbb6d9df.tar.gz
device_samsung_n7100-0fc28367115f458c14e16240acf7f76efbb6d9df.tar.bz2
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
-rw-r--r--libsensors/AccelSensor.cpp2
1 files changed, 1 insertions, 1 deletions
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;