diff options
Diffstat (limited to 'libsensors/OrientationSensor.cpp')
-rw-r--r-- | libsensors/OrientationSensor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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]; |