Fix build error occurred in sensor plugins accepted/tizen/unified/20191125.135542 submit/tizen/20191122.014017
authorsaerome.kim <saerome.kim@samsung.com>
Fri, 22 Nov 2019 01:31:15 +0000 (10:31 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Fri, 22 Nov 2019 01:39:14 +0000 (10:39 +0900)
- Problem: Build break took place when building Light/Motion plugins.
- Cause: member variable name had been changed in uas_sensor_info_t.
- Solution: Backout the change.

Change-Id: Id8c10d798a28427451d81b16772603490f24dcd0
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
ua-daemon/src/pm/ua-pm-util.c
ua-plugins/include/ua-plugin.h

index 6e1c562..2bac0d9 100644 (file)
@@ -372,7 +372,7 @@ uam_sensor_info_s *_pm_util_uas_sensor_info_to_uam_sensor_info(
        retv_if(NULL == sensor_info, NULL);
 
        sensor_info->status = info->status;
-       sensor_info->timestamp = info->last_seen;
+       sensor_info->timestamp = info->timestamp;
        sensor_info->accuracy = info->accuracy;
        sensor_info->count = info->count;
        for (i = 0; i < info->count; i++) {
index 4c32d60..f9d71f9 100644 (file)
@@ -124,7 +124,7 @@ typedef struct {
 /* Sensor information structure */
 typedef struct {
        unsigned int status; /**< Sensor status */
-       unsigned long long last_seen; /**< Last seen time */
+       unsigned long long timestamp; /**< Last seen time */
        int accuracy; /**< Accuracy */
        int count; /**< How many sensor data are there */
        double *values; /**< Sensor data */