aboutsummaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorRoberto Gibellini <gibellini.roberto@gmail.com>2016-12-02 11:48:53 -0800
committerRoberto Gibellini <gibellini.roberto@gmail.com>2016-12-02 11:49:48 -0800
commit1775ca6d7c67c069f91b4e19869179794d344eb1 (patch)
tree79fd49705a2b5879fe117f98fa99571dd9f3496d /libsensors
parent9c16c7ba88294dc2a58d570bcc59aa43c947be6c (diff)
downloaddevice_samsung_kona-common-1775ca6d7c67c069f91b4e19869179794d344eb1.zip
device_samsung_kona-common-1775ca6d7c67c069f91b4e19869179794d344eb1.tar.gz
device_samsung_kona-common-1775ca6d7c67c069f91b4e19869179794d344eb1.tar.bz2
Revert "Revert "kona : fix for compass""
This reverts commit 9c16c7ba88294dc2a58d570bcc59aa43c947be6c. Change-Id: I0f90a70c4b4bb5cb19210a5964ca322f499e8dd7
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/CompassSensor.cpp5
-rw-r--r--libsensors/OrientationSensor.cpp3
2 files changed, 3 insertions, 5 deletions
diff --git a/libsensors/CompassSensor.cpp b/libsensors/CompassSensor.cpp
index 48c4487..f45a240 100644
--- a/libsensors/CompassSensor.cpp
+++ b/libsensors/CompassSensor.cpp
@@ -22,8 +22,7 @@
#include <dirent.h>
#include <sys/select.h>
#include <cutils/log.h>
-#include <string.h>
-
+#include <string.h
#include "CompassSensor.h"
@@ -127,7 +126,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], "delay");
+ strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_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 5e060bd..4835700 100644
--- a/libsensors/OrientationSensor.cpp
+++ b/libsensors/OrientationSensor.cpp
@@ -25,7 +25,6 @@
#include <cutils/log.h>
#include <string.h>
-
#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];