aboutsummaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorRGIB <gibellini.roberto@gmail.com>2016-12-02 13:48:05 +0100
committerRGIB <gibellini.roberto@gmail.com>2016-12-02 13:48:05 +0100
commit5ab7ea5e340322fe27830aa3f38ca580d2de0208 (patch)
treef1bb323aa0eb3e2eef870903a8de59df509474a3 /libsensors
parent8bc8a9d9b34505db6ef60131442559629e654931 (diff)
downloaddevice_samsung_kona-common-5ab7ea5e340322fe27830aa3f38ca580d2de0208.zip
device_samsung_kona-common-5ab7ea5e340322fe27830aa3f38ca580d2de0208.tar.gz
device_samsung_kona-common-5ab7ea5e340322fe27830aa3f38ca580d2de0208.tar.bz2
kona : fix accelerometer data frequency
Change-Id: Icc53e3f24d065906da6bf4493fd7c4e40619c76f
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/AccelSensor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsensors/AccelSensor.cpp b/libsensors/AccelSensor.cpp
index cb205e3..060d26d 100644
--- a/libsensors/AccelSensor.cpp
+++ b/libsensors/AccelSensor.cpp
@@ -24,7 +24,6 @@
#include <cutils/log.h>
#include <string.h>
-
#include "AccelSensor.h"
@@ -115,7 +114,7 @@ int AccelSensor::setDelay(int32_t handle, int64_t ns)
ns = 10000000; // Minimum on stock
}
- strcpy(&input_sysfs_path[input_sysfs_path_len], "delay");
+ strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
fd = open(input_sysfs_path, O_RDWR);
if (fd >= 0) {
char buf[80];