summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorZiyann <jaraidaniel@gmail.com>2014-11-22 14:34:55 +0100
committerZiyan <jaraidaniel@gmail.com>2014-12-13 00:39:22 +0100
commitd744be2e69d3891fd9c9a83aafa857c590417e48 (patch)
treef5b5c491d84623e6103b0909a0ed8f8dd177f56e /libsensors
parentd72ea2436a11a455d5494f3c2bdcabe9b0832f8c (diff)
downloaddevice_samsung_tuna-d744be2e69d3891fd9c9a83aafa857c590417e48.zip
device_samsung_tuna-d744be2e69d3891fd9c9a83aafa857c590417e48.tar.gz
device_samsung_tuna-d744be2e69d3891fd9c9a83aafa857c590417e48.tar.bz2
tuna: fix sensors build with 5.0
Change-Id: I2baeed3ad353ebeb94858c9edc0da78e41b09dcd
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/sensors.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/libsensors/sensors.cpp b/libsensors/sensors.cpp
index 2a33731..c0ad385 100644
--- a/libsensors/sensors.cpp
+++ b/libsensors/sensors.cpp
@@ -80,15 +80,21 @@ static struct sensor_t sSensorList[LOCAL_SENSORS + MPLSensor::numSensors] = {
{ "GP2A Light sensor",
"Sharp",
1, SENSORS_LIGHT_HANDLE,
- SENSOR_TYPE_LIGHT, powf(10, 125.0f/ 24.0f) * 4, 1.0f, 0.75f, 0, { } },
+ SENSOR_TYPE_LIGHT, powf(10, 125.0f/ 24.0f) * 4, 1.0f, 0.75f, 0, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_ON_CHANGE_MODE,
+ { } },
{ "GP2A Proximity sensor",
"Sharp",
1, SENSORS_PROXIMITY_HANDLE,
- SENSOR_TYPE_PROXIMITY, 5.0f, 5.0f, 0.75f, 0, { } },
+ SENSOR_TYPE_PROXIMITY, 5.0f, 5.0f, 0.75f, 0, 0, 0, 0, 0, 0,
+ SENSOR_FLAG_WAKE_UP | SENSOR_FLAG_ON_CHANGE_MODE,
+ { } },
{ "BMP180 Pressure sensor",
"Bosch",
1, SENSORS_PRESSURE_HANDLE,
- SENSOR_TYPE_PRESSURE, 1100.0f, 0.01f, 0.67f, 20000, { } },
+ SENSOR_TYPE_PRESSURE, 1100.0f, 0.01f, 0.67f, 20000, 0, 0, 0, 0, 20000,
+ SENSOR_FLAG_CONTINUOUS_MODE,
+ { } },
};
static int numSensors = LOCAL_SENSORS;