Fix is_sensor_ready() API
authorAtul Rai <a.rai@samsung.com>
Thu, 31 Jan 2019 07:06:39 +0000 (12:36 +0530)
committer김새롬/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <saerome.kim@samsung.com>
Mon, 4 Feb 2019 09:04:41 +0000 (18:04 +0900)
Signed-off-by: Atul Rai <a.rai@samsung.com>
ua-daemon/src/ua-manager-core.c

index d23627e..473ea09 100644 (file)
@@ -1233,7 +1233,7 @@ gboolean _uam_core_is_sensor_ready(unsigned int sensor)
        UAM_DBG("%8.8X is %s", sensor, (is_ready ? "Ready" : "NOT Ready"));
 
        FUNC_EXIT;
-       return UAM_ERROR_NONE;
+       return is_ready;
 }
 
 int _uam_core_set_detection_threshold(unsigned int sensor,