Skip to content
Snippets Groups Projects
Commit d8f6be8c authored by Michael Borisov's avatar Michael Borisov
Browse files

Fixed a bug with ecube timestamps for Panel Analog Input

parent 950456e0
No related branches found
No related tags found
No related merge requests found
...@@ -493,7 +493,7 @@ bool EcubeThread::updateBuffer() ...@@ -493,7 +493,7 @@ bool EcubeThread::updateBuffer()
if (pDevInt->buf_timestamp_locked) if (pDevInt->buf_timestamp_locked)
{ {
// Update the 64-bit timestamp, take care of its wrap-around // Update the 64-bit timestamp, take care of its wrap-around
unsigned tsdif = pDevInt->buf_timestamp - bts; unsigned tsdif = bts - pDevInt->buf_timestamp;
pDevInt->buf_timestamp64 += tsdif; pDevInt->buf_timestamp64 += tsdif;
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment