stefan pushed a commit to branch master.

commit 85d7dddbdeacba0c9cb6957b2ee1af07ca9e7142
Author: Stefan Schmidt <[email protected]>
Date:   Wed Mar 27 13:23:53 2013 +0000

    eeze/sensor: Make sure we send out ecore events for all async reads in fake 
module
---
 src/modules/eeze/sensor/fake/fake.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/eeze/sensor/fake/fake.c 
b/src/modules/eeze/sensor/fake/fake.c
index 2544afa..6123458 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)
    switch (sensor_type)
      {
       case EEZE_SENSOR_TYPE_ACCELEROMETER:
-         ecore_event_add(EEZE_SENSOR_EVENT_ACCELEROMETER, obj, NULL, NULL);
       case EEZE_SENSOR_TYPE_MAGNETIC:
       case EEZE_SENSOR_TYPE_ORIENTATION:
       case EEZE_SENSOR_TYPE_GYROSCOPE:
@@ -127,6 +126,7 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void 
*user_data EINA_UNUSED)
         obj->data[2] = 42;
         gettimeofday(&tv, NULL);
         obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec);
+        ecore_event_add(sensor_type, obj, NULL, NULL);
         break;
 
       case EEZE_SENSOR_TYPE_LIGHT:
@@ -137,6 +137,7 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void 
*user_data EINA_UNUSED)
         obj->data[0] = 7;
         gettimeofday(&tv, NULL);
         obj->timestamp = ((tv.tv_sec * 1000000) + tv.tv_usec);
+        ecore_event_add(sensor_type, obj, NULL, NULL);
         break;
 
       default:

-- 

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d

Reply via email to