aboutsummaryrefslogtreecommitdiffstats
path: root/libsensors/OrientationSensor.cpp
diff options
context:
space:
mode:
authorRGIB <gibellini.roberto@gmail.com>2016-12-02 20:41:32 +0100
committerRoberto Gibellini <gibellini.roberto@gmail.com>2016-12-02 11:46:31 -0800
commit641a359a04a15d46020e052121e91dbfd2477b83 (patch)
treeb4ae78a92a6425e8ee0c103bb19544166fb645a1 /libsensors/OrientationSensor.cpp
parent5ab7ea5e340322fe27830aa3f38ca580d2de0208 (diff)
downloaddevice_samsung_kona-common-641a359a04a15d46020e052121e91dbfd2477b83.zip
device_samsung_kona-common-641a359a04a15d46020e052121e91dbfd2477b83.tar.gz
device_samsung_kona-common-641a359a04a15d46020e052121e91dbfd2477b83.tar.bz2
kona : fix for compass
Change-Id: Iaad6941c3d96a5e0effe0f367432c698920a0877
Diffstat (limited to 'libsensors/OrientationSensor.cpp')
-rw-r--r--libsensors/OrientationSensor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libsensors/OrientationSensor.cpp b/libsensors/OrientationSensor.cpp
index 5e060bd..4342552 100644
--- a/libsensors/OrientationSensor.cpp
+++ b/libsensors/OrientationSensor.cpp
@@ -23,8 +23,7 @@
#include <sys/select.h>
#include <cutils/properties.h>
#include <cutils/log.h>
-#include <string.h>
-
+#include <cstring>
#include "OrientationSensor.h"
@@ -120,7 +119,7 @@ int OrientationSensor::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];