[HAM] fix the wrong code about option dictionary param (GPS) 27/75227/1
authorsangrae.kim <sangrae.kim@samsung.com>
Fri, 17 Jun 2016 05:37:54 +0000 (14:37 +0900)
committersangrae.kim <sangrae.kim@samsung.com>
Fri, 17 Jun 2016 06:03:00 +0000 (15:03 +0900)
Change-Id: Icbc2a92a8c655835f6cb7481e32288da55bc8321
Signed-off-by: sangrae.kim <sangrae.kim@samsung.com>
src/humanactivitymonitor/humanactivitymonitor_api.js

index 412f0c59c1c1c249f75d996670d3cd5fc6c75fce..d9c3bf02f216fd30e796afca2b83e947ef5d2d15 100755 (executable)
@@ -249,9 +249,9 @@ HumanActivityMonitorManager.prototype.start = function(type, changedCallback) {
   switch (args.type) {
   case HumanActivityType.GPS:
     callbackInterval = !type_.isNullOrUndefined(options[optionsAttributes[0]]) ?
-        args.option.callbackInterval : 150000;
+        options[optionsAttributes[0]] : 150000;
     sampleInterval = !type_.isNullOrUndefined(options[optionsAttributes[1]]) ?
-        args.option.sampleInterval : 1000;
+        options[optionsAttributes[1]] : 1000;
     break;
   case HumanActivityType.HRM:
     callbackInterval = !type_.isNullOrUndefined(options[optionsAttributes[0]]) ?