diff options
author | saerome.kim <saerome.kim@samsung.com> | 2019-10-21 20:55:53 +0900 |
---|---|---|
committer | saerome.kim <saerome.kim@samsung.com> | 2019-11-01 12:49:13 +0900 |
commit | d9a8ff5283b54bdc59d2c75b578e7549bebe1934 (patch) | |
tree | 5dcf684ea0d30aebe51c35894595287148c021d7 /src/user-awareness-util.c | |
parent | 1a1d16753a8e4c8cfbb2336c99375ca500c3a71d (diff) | |
download | user-awareness-d9a8ff5283b54bdc59d2c75b578e7549bebe1934.tar.gz user-awareness-d9a8ff5283b54bdc59d2c75b578e7549bebe1934.tar.bz2 user-awareness-d9a8ff5283b54bdc59d2c75b578e7549bebe1934.zip |
Add functionality to report instant sensor status change
- Problem: in ABSENCE case, even the motion sensor detects ABSENCE
ua-manager reports this ABSENCE state after the detection window complete.
- Cause: If ABSENCE case, the ABSENCE can be jurged only when the
detction window complete.
- Solution: Whenever the sensor status is changed, plugin reports status
changed event immediately so that the user can recognize ABSENCE event
takes place during uncompleted ABSENCE detection window.
Change-Id: I49254770cbab1c55aac7b9b893c5eec8d54139cf
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Diffstat (limited to 'src/user-awareness-util.c')
-rw-r--r-- | src/user-awareness-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user-awareness-util.c b/src/user-awareness-util.c index 5e113f3..d066063 100644 --- a/src/user-awareness-util.c +++ b/src/user-awareness-util.c @@ -291,6 +291,7 @@ ua_sensor_info_s* _uam_to_ua_sensor_info(uam_sensor_info_s *info) if (!sensor_info) return NULL; + sensor_info->status = info->status; sensor_info->timestamp = info->timestamp; sensor_info->count = info->count; sensor_info->bitmask = _uam_to_ua_sensor(info->sensor_bitmask); |