summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-08 15:36:44 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-03-08 15:36:44 +0100
commit2ea9f1064e2dc5cc4c922c753922b15a60672475 (patch)
tree187056a8ecec76e59873e6f77d1771e8c8309509
parent04a88fd08442721131b140e3b548e5f26d0be224 (diff)
downloaddevice_samsung_p3100-2ea9f1064e2dc5cc4c922c753922b15a60672475.zip
device_samsung_p3100-2ea9f1064e2dc5cc4c922c753922b15a60672475.tar.gz
device_samsung_p3100-2ea9f1064e2dc5cc4c922c753922b15a60672475.tar.bz2
Revert "sensors: Disable orientation due to the lack of orientationd"
This reverts commit ac631010d57546b31ed5ee13e851e803b24de900.
-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