summaryrefslogtreecommitdiffstats
path: root/libsensors/PressureSensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsensors/PressureSensor.cpp')
-rw-r--r--libsensors/PressureSensor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsensors/PressureSensor.cpp b/libsensors/PressureSensor.cpp
index 93423a8..e77ee79 100644
--- a/libsensors/PressureSensor.cpp
+++ b/libsensors/PressureSensor.cpp
@@ -21,8 +21,9 @@
#include <unistd.h>
#include <dirent.h>
#include <sys/select.h>
+#include <cstring>
-#include <utils/Log.h>
+#include <cutils/log.h>
#include "PressureSensor.h"
@@ -52,6 +53,7 @@ PressureSensor::PressureSensor()
strcat(input_sysfs_path, input_name);
strcat(input_sysfs_path, "/device/");
input_sysfs_path_len = strlen(input_sysfs_path);
+ enable(0, 1);
}
}
@@ -95,7 +97,7 @@ int PressureSensor::setDelay(int32_t handle, int64_t ns)
{
int fd;
- strcpy(&input_sysfs_path[input_sysfs_path_len], "pressure_poll_delay");
+ strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
fd = open(input_sysfs_path, O_RDWR);
if (fd >= 0) {
char buf[80];