From 9c16c7ba88294dc2a58d570bcc59aa43c947be6c Mon Sep 17 00:00:00 2001 From: Roberto Gibellini Date: Fri, 2 Dec 2016 11:47:35 -0800 Subject: Revert "kona : fix for compass" This reverts commit 641a359a04a15d46020e052121e91dbfd2477b83. Change-Id: I21621b191276c6054a6b70cee6060ea52538fd47 --- libsensors/CompassSensor.cpp | 5 +++-- 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 #include #include -#include +#include + #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 #include #include -#include +#include + #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]; -- cgit v1.1