diff options
author | Roberto Gibellini <gibellini.roberto@gmail.com> | 2016-12-02 11:47:35 -0800 |
---|---|---|
committer | Roberto Gibellini <gibellini.roberto@gmail.com> | 2016-12-02 11:47:54 -0800 |
commit | 9c16c7ba88294dc2a58d570bcc59aa43c947be6c (patch) | |
tree | 9106f5f1a538eaed91a5de7aa1e86a09f76f662c | |
parent | 641a359a04a15d46020e052121e91dbfd2477b83 (diff) | |
download | device_samsung_kona-common-9c16c7ba88294dc2a58d570bcc59aa43c947be6c.zip device_samsung_kona-common-9c16c7ba88294dc2a58d570bcc59aa43c947be6c.tar.gz device_samsung_kona-common-9c16c7ba88294dc2a58d570bcc59aa43c947be6c.tar.bz2 |
Revert "kona : fix for compass"
This reverts commit 641a359a04a15d46020e052121e91dbfd2477b83.
Change-Id: I21621b191276c6054a6b70cee6060ea52538fd47
-rw-r--r-- | libsensors/CompassSensor.cpp | 5 | ||||
-rw-r--r-- | libsensors/OrientationSensor.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libsensors/CompassSensor.cpp b/libsensors/CompassSensor.cpp index 649c8a1..48c4487 100644 --- a/libsensors/CompassSensor.cpp +++ b/libsensors/CompassSensor.cpp @@ -22,7 +22,8 @@ #include <dirent.h> #include <sys/select.h> #include <cutils/log.h> -#include <cstring> +#include <string.h> + #include "CompassSensor.h" @@ -126,7 +127,7 @@ int CompassSensor::setDelay(int32_t handle, int64_t ns) // ALOGD("CompassSensor::~setDelay(%d, %lld) val = %d", handle, ns, val); - strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay"); + strcpy(&input_sysfs_path[input_sysfs_path_len], "delay"); fd = open(input_sysfs_path, O_RDWR); if (fd >= 0) { char buf[80]; diff --git a/libsensors/OrientationSensor.cpp b/libsensors/OrientationSensor.cpp index 4342552..5e060bd 100644 --- a/libsensors/OrientationSensor.cpp +++ b/libsensors/OrientationSensor.cpp @@ -23,7 +23,8 @@ #include <sys/select.h> #include <cutils/properties.h> #include <cutils/log.h> -#include <cstring> +#include <string.h> + #include "OrientationSensor.h" @@ -119,7 +120,7 @@ int OrientationSensor::setDelay(int32_t handle, int64_t ns) ns = 10000000; // Minimum on stock } - strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay"); + strcpy(&input_sysfs_path[input_sysfs_path_len], "delay"); fd = open(input_sysfs_path, O_RDWR); if (fd >= 0) { char buf[80]; |