Case study: we have incorrect timestamps on the Malata accelerometer
at the moment, and they are being forwarded to the poll-mode
thermometer that is associated to the same (MPU) iio device.
Simply rely on the timestamps constructed in the acquisition thread.
Change-Id: I7d803c71d1d4018fca3c5a8c7ca52fb05422eb0c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
int s;
for (s=0; s<MAX_SENSORS; s++)
- if (sensor[s].dev_num == dev_num && is_enabled(s))
+ if (sensor[s].dev_num == dev_num && is_enabled(s) && !sensor[s].is_polling)
set_report_ts(s, ts);
}