aboutsummaryrefslogtreecommitdiffstats
path: root/libsensors/CompassSensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsensors/CompassSensor.cpp')
-rw-r--r--libsensors/CompassSensor.cpp5
1 files changed, 3 insertions, 2 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];