summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-08 12:51:05 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-03-08 12:51:05 +0100
commit5bd3e633b5dff9acb282f30c830a04aa92546f13 (patch)
treede9db492bfe04777dc9e5ae05276114323cd77f9
parent6354c9e67016e69fb7ddf773b03b0c0642996d73 (diff)
downloaddevice_samsung_p5100-5bd3e633b5dff9acb282f30c830a04aa92546f13.zip
device_samsung_p5100-5bd3e633b5dff9acb282f30c830a04aa92546f13.tar.gz
device_samsung_p5100-5bd3e633b5dff9acb282f30c830a04aa92546f13.tar.bz2
Revert "sensors: Disable orientation due to the lack of orientationd"
This reverts commit 866e21cb38262d0aa880291c3d3dee3b3438ce1a.
-rw-r--r--sensors/piranha_sensors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sensors/piranha_sensors.c b/sensors/piranha_sensors.c
index 4ffc06c..c1fd534 100644
--- a/sensors/piranha_sensors.c
+++ b/sensors/piranha_sensors.c
@@ -39,6 +39,8 @@ struct sensor_t piranha_sensors[] = {
SENSOR_TYPE_ACCELEROMETER, 19.6f, 0.0383f, 0.13f, 10000, {}, },
{ "YAS530 Magnetic Sensor", "Yamaha", 1, SENSOR_TYPE_MAGNETIC_FIELD,
SENSOR_TYPE_MAGNETIC_FIELD, 800.0f, 0.3f, 4.0f, 10000, {}, },
+ { "YAS Orientation Sensor", "Yamaha", 1, SENSOR_TYPE_ORIENTATION,
+ SENSOR_TYPE_ORIENTATION, 360.0f, 0.1f, 0.0f, 10000, {}, },
#ifdef TARGET_DEVICE_P5100
{ "BH1721 Light Sensor", "ROHM", 1, SENSOR_TYPE_LIGHT,
SENSOR_TYPE_LIGHT, 0.0f, 0.0f, 0.0f, 0, {}, },
@@ -56,6 +58,7 @@ int piranha_sensors_count = sizeof(piranha_sensors) / sizeof(struct sensor_t);
struct piranha_sensors_handlers *piranha_sensors_handlers[] = {
&bma250,
&yas530c,
+ &yas_orientation,
#ifdef TARGET_DEVICE_P5100
&bh1721,
#endif