OSDN Git Service

Pass iio provided timestamps without further processing.
authorAdriana Reus <adriana.reus@intel.com>
Thu, 5 Feb 2015 15:40:17 +0000 (17:40 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Fri, 6 Feb 2015 15:11:28 +0000 (17:11 +0200)
Change-Id: Iebcca183362929fdd189eeb6ffe82b44edc90b9e
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
control.c

index 018ebf2..dfd9292 100644 (file)
--- a/control.c
+++ b/control.c
@@ -1164,7 +1164,7 @@ static void stamp_reports (int dev_num, int64_t ts)
 
        for (s=0; s<MAX_SENSORS; s++)
                if (sensor[s].dev_num == dev_num && is_enabled(s) && sensor[s].mode != MODE_POLL)
-                       set_report_ts(s, ts);
+                       sensor[s].report_ts = ts;
 }
 
 
@@ -1259,7 +1259,6 @@ static int integrate_device_report_from_dev(int dev_num, int fd)
        boot_to_rt_delta = get_timestamp_boot() - get_timestamp_realtime();
 
        stamp_reports(dev_num, ts + boot_to_rt_delta);
-
        return 0;
 }