sensord: auto_rotation: fix interval setting in auto_rotation 38/70238/2
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 19 May 2016 02:54:06 +0000 (11:54 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 19 May 2016 05:22:14 +0000 (22:22 -0700)
- use interval instead of m_interval

Change-Id: I8ae7d1371f8b9e4c7110f1caf4b7541f45c239ea
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensor/auto_rotation/auto_rotation_sensor.cpp

index 335d41e..b3f0784 100644 (file)
@@ -178,7 +178,7 @@ int auto_rotation_sensor::get_data(sensor_data_t **data, int *length)
 
 bool auto_rotation_sensor::set_interval(unsigned long interval)
 {
-       m_accel_sensor->add_interval((intptr_t)this , m_interval, true);
+       m_accel_sensor->add_interval((intptr_t)this , interval, true);
 
        m_interval = interval;
        return false;