Hi,
I don't know if it's normal behavior or maybe just a problem related to
the buffered reads in st_lsm6dsx.
But when we have the buffered reads enabled and suspending for x amount
of time. The iio timestamps is, x amount of time is delayed. As seen here:
https://gist.github.com/sknsean/60e20c2fa3a3c6d69ef128c703ed43fc
From your own software (but I'm able to reproduce with libiio/iio_readdev)
First col is system time,
Second timestamp is the iio timestamp
Could a solution, be to call st_lsm6dsx_reset_hw_ts() in
st_lsm6dsx_resume() ?
/Sean