summaryrefslogtreecommitdiff
path: root/src/modules/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-03-27 13:23:53 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2013-03-27 13:23:53 +0000
commit85d7dddbdeacba0c9cb6957b2ee1af07ca9e7142 (patch)
tree74fcd3b694635a0db2eac319e8aaf7f877c4161e /src/modules/eeze
parent2613394b66d1188139cfdefe3be86202a96bd201 (diff)
eeze/sensor: Make sure we send out ecore events for all async reads in fake module
Diffstat (limited to 'src/modules/eeze')
-rw-r--r--src/modules/eeze/sensor/fake/fake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/eeze/sensor/fake/fake.c b/src/modules/eeze/sensor/fake/fake.c
index 2544afafb0..61234589fb 100644
--- a/src/modules/eeze/sensor/fake/fake.c
+++ b/src/modules/eeze/sensor/fake/fake.c
@@ -117,7 +117,6 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
117 switch (sensor_type) 117 switch (sensor_type)
118 { 118 {
119 case EEZE_SENSOR_TYPE_ACCELEROMETER: 119 case EEZE_SENSOR_TYPE_ACCELEROMETER:
120 ecore_event_add(EEZE_SENSOR_EVENT_ACCELEROMETER, obj, NULL, NULL);
121 case EEZE_SENSOR_TYPE_MAGNETIC: 120 case EEZE_SENSOR_TYPE_MAGNETIC:
122 case EEZE_SENSOR_TYPE_ORIENTATION: 121 case EEZE_SENSOR_TYPE_ORIENTATION:
123 case EEZE_SENSOR_TYPE_GYROSCOPE: 122 case EEZE_SENSOR_TYPE_GYROSCOPE:
@@ -127,6 +126,7 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
127 obj->data[2] = 42; 126 obj->data[2] = 42;
128 gettimeofday(&tv, NULL); 127 gettimeofday(&tv, NULL);
129 obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec); 128 obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec);
129 ecore_event_add(sensor_type, obj, NULL, NULL);
130 break; 130 break;
131 131
132 case EEZE_SENSOR_TYPE_LIGHT: 132 case EEZE_SENSOR_TYPE_LIGHT:
@@ -137,6 +137,7 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
137 obj->data[0] = 7; 137 obj->data[0] = 7;
138 gettimeofday(&tv, NULL); 138 gettimeofday(&tv, NULL);
139 obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec); 139 obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec);
140 ecore_event_add(sensor_type, obj, NULL, NULL);
140 break; 141 break;
141 142
142 default: 143 default: