summaryrefslogtreecommitdiff
path: root/src/modules/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-04-03 16:23:33 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-04-03 17:14:20 +0100
commitf5b322a824967c8385c6c730895a2b0ba37790be (patch)
tree2660a05810d65ba99f997c5393c8bcc4a5e82090 /src/modules/eeze
parent815d452303a4af4b8f99b531998dcc3fce0d04ae (diff)
eeze/sensor/tizen: USe enum sentinel to iterate over sensor types.
With the newer version we now have a sentinel that marks the last item of the enum.
Diffstat (limited to 'src/modules/eeze')
-rw-r--r--src/modules/eeze/sensor/tizen/tizen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/eeze/sensor/tizen/tizen.c b/src/modules/eeze/sensor/tizen/tizen.c
index b22bf63067..603cc7b0f5 100644
--- a/src/modules/eeze/sensor/tizen/tizen.c
+++ b/src/modules/eeze/sensor/tizen/tizen.c
@@ -769,8 +769,7 @@ eeze_sensor_tizen_sensors_find(void)
769 sensor_type_e type; 769 sensor_type_e type;
770 bool supported = 0; 770 bool supported = 0;
771 771
772 /* FIXME: Make this safe against changes in the enum. But how? */ 772 for (type = SENSOR_ACCELEROMETER; type <= SENSOR_LAST; type++)
773 for (type = SENSOR_ACCELEROMETER; type <= SENSOR_MOTION_FACEDOWN; type++)
774 { 773 {
775 sensor_is_supported(type, &supported); 774 sensor_is_supported(type, &supported);
776 if (supported) 775 if (supported)