sensord: fix the bug that gravity synthesize has to skip the all event 39/64039/1
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 29 Mar 2016 12:57:53 +0000 (21:57 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Tue, 29 Mar 2016 12:57:53 +0000 (21:57 +0900)
except of accelerometer event

Change-Id: I39c074b12584469c8ca5030dcbe28ee8223eaced
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensor/gravity/gravity_sensor.cpp

index 49147a6..2c39ebf 100644 (file)
@@ -194,6 +194,9 @@ void gravity_sensor::synthesize_rv(const sensor_event_t& event)
 
 void gravity_sensor::synthesize_lowpass(const sensor_event_t& event)
 {
+       if (event.event_type != ACCELEROMETER_EVENT_RAW_DATA_REPORT_ON_TIME)
+               return;
+
        sensor_event_t *gravity_event;
        float x, y, z, norm, alpha, tau, err;