Fix the problem that sensor_status_changed_cb is not called
authorsaerome.kim <saerome.kim@samsung.com>
Wed, 13 Nov 2019 05:24:50 +0000 (14:24 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Wed, 13 Nov 2019 06:41:16 +0000 (15:41 +0900)
- problem: when only PRESENCE detectoin enabled, sensor_status_change_cb is not called
- cause: Check the internal flag that must be set before the sensor_status_change_cb is called.
         But the internal flag is set only if ABSENCE detection invoked.
- Solution: remove the internal flag.

Change-Id: I7d320596a4c9580b17a1d4bb9b7d6065b169b80e
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
packaging/capi-network-ua.spec
src/user-awareness-monitors.c

index 970dfda4742e41548814daa6ddf5a8c52c788f82..170123026eb0b5d2c06bbcce01347bce29e55b48 100644 (file)
@@ -1,6 +1,6 @@
 Name: capi-network-ua
 Summary: User Awareness Framework CAPI
-Version: 0.12.14
+Version: 0.12.15
 Release: 1
 License: Apache-2.0
 Source0: %{name}-%{version}.tar.gz
index 8ef4b88e44d9819f0ebb88268ee992bbeff5420c..6123708d18cf1a7b49fa23006a32fb0ebab6b0c8 100644 (file)
@@ -1030,9 +1030,7 @@ void _ua_monitor_handle_sensor_status_changed(uam_sensor_info_s *info)
                        continue;
                }
 
-               if (!monitor->internal_presence_started ||
-                       (!monitor->presence_detection_started &&
-                        !monitor->internal_presence_started)) {
+               if (!monitor->presence_detection_started) {
                        UA_WARN("skip!! because detection does not start [%x]",
                                monitor->sensor_bitmask);
                        continue;