From 641a359a04a15d46020e052121e91dbfd2477b83 Mon Sep 17 00:00:00 2001 From: RGIB Date: Fri, 2 Dec 2016 20:41:32 +0100 Subject: kona : fix for compass Change-Id: Iaad6941c3d96a5e0effe0f367432c698920a0877 --- libsensors/CompassSensor.cpp | 5 ++--- libsensors/InputEventReader.cpp | 3 +-- libsensors/OrientationSensor.cpp | 5 ++--- 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'libsensors') diff --git a/libsensors/CompassSensor.cpp b/libsensors/CompassSensor.cpp index 48c4487..649c8a1 100644 --- a/libsensors/CompassSensor.cpp +++ b/libsensors/CompassSensor.cpp @@ -22,8 +22,7 @@ #include #include #include -#include - +#include #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/InputEventReader.cpp b/libsensors/InputEventReader.cpp index a0b9c00..89cc438 100644 --- a/libsensors/InputEventReader.cpp +++ b/libsensors/InputEventReader.cpp @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -26,7 +25,7 @@ #include #include - +#include #include "InputEventReader.h" /*****************************************************************************/ 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 #include #include -#include - +#include #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]; -- cgit v1.1