summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-03-07 21:47:04 +1100
committerSimon Shields <keepcalm444@gmail.com>2016-03-07 21:47:04 +1100
commit1ea8f299e6b9c46eea55a9fa6ebee88faf91220e (patch)
treed7dc3a089589b7de91fc304bb5bc1871ea395f10 /libsensors
parent276ec04ef3b865d3aaf6a1b8a07f791a0213c9c4 (diff)
downloaddevice_samsung_i9300-1ea8f299e6b9c46eea55a9fa6ebee88faf91220e.zip
device_samsung_i9300-1ea8f299e6b9c46eea55a9fa6ebee88faf91220e.tar.gz
device_samsung_i9300-1ea8f299e6b9c46eea55a9fa6ebee88faf91220e.tar.bz2
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
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/AccelSensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/AccelSensor.cpp b/libsensors/AccelSensor.cpp
index fddb2cd..d5040c1 100644
--- a/libsensors/AccelSensor.cpp
+++ b/libsensors/AccelSensor.cpp
@@ -111,7 +111,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;