[sensor] add code to set sensor option
authorHyunjin Park <hj.na.park@samsung.com>
Fri, 11 Sep 2015 07:15:31 +0000 (16:15 +0900)
committerHyunjin Park <hj.na.park@samsung.com>
Fri, 11 Sep 2015 07:15:31 +0000 (16:15 +0900)
- to fix Web TCT fail
- TCT result : 100% passed

Change-Id: Icd33486d1651213e4888c494e1e577f67a6fd5ac

packaging/webapi-plugins.spec
src/sensor/sensor_service.cc

index 94b2ff157eb77e24d0e8da9e8a1263f3ac956413..3c582be6ff8dd73c6bfa454ac8cdac915364882c 100755 (executable)
@@ -4,7 +4,7 @@
 %define crosswalk_extensions tizen-extensions-crosswalk
 
 Name:       webapi-plugins
-Version:    0.43
+Version:    0.44
 Release:    0
 License:    Apache-2.0 and BSD-2.0 and MIT
 Group:      Development/Libraries
index 41472be938e434f1a7b5b8cd58a236f964602c84..c188191ecc44115ceb8b8ab9aa0d22808c3df172 100644 (file)
@@ -329,6 +329,7 @@ PlatformResult SensorData::Start() {
     return res;
   }
 
+  sensor_listener_set_option(listener_, SENSOR_OPTION_ALWAYS_ON);
   int ret = sensor_listener_start(listener_);
   if (SENSOR_ERROR_NONE != ret) {
     LoggerE("sensor_listener_start : %d", ret);