From a45ab1c17aa42a666d5efc13a202dfede4bc1695 Mon Sep 17 00:00:00 2001 From: "saerome.kim" Date: Fri, 27 Sep 2019 15:24:42 +0900 Subject: [PATCH] Set default light threshold as 2 Change-Id: I4a4da9d914bffb0535a803b5f24080aaa26fb850 Signed-off-by: saerome.kim --- include/ua-api.h | 2 +- packaging/ua-manager.spec | 2 +- ua-daemon/src/ua-manager-core.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ua-api.h b/include/ua-api.h index 9178303..fe563af 100644 --- a/include/ua-api.h +++ b/include/ua-api.h @@ -107,7 +107,7 @@ typedef enum { * @brief Default presence threshold. * @since_tizen 5.5 */ -#define UAM_PRESENCE_THRESHOLD_DEFAULT 60 +#define UAM_PRESENCE_THRESHOLD_DEFAULT 2 /** * @brief Default absence threshold. diff --git a/packaging/ua-manager.spec b/packaging/ua-manager.spec index 274dac7..14e474a 100644 --- a/packaging/ua-manager.spec +++ b/packaging/ua-manager.spec @@ -1,6 +1,6 @@ Name: ua-manager Summary: User awareness manager -Version: 0.10.2 +Version: 0.10.3 Release: 1 License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/ua-daemon/src/ua-manager-core.c b/ua-daemon/src/ua-manager-core.c index 15786b7..6cde196 100644 --- a/ua-daemon/src/ua-manager-core.c +++ b/ua-daemon/src/ua-manager-core.c @@ -2972,7 +2972,7 @@ int _uam_core_start_active_device_scan(char *sender, unsigned int sensors, int d } scanner = g_malloc0(sizeof(uam_scanner_info_t)); - if (scanner) { + if (!scanner) { UAM_ERR("Failed to allocate memory"); return UAM_ERROR_OUT_OF_MEMORY; } -- 2.7.4