From d8f6be8c02e5e563d8a4d2647b86536b9678584f Mon Sep 17 00:00:00 2001 From: Michael Borisov <mborisov1@github.com> Date: Wed, 12 Nov 2014 04:19:35 +0200 Subject: [PATCH] Fixed a bug with ecube timestamps for Panel Analog Input --- Source/Processors/DataThreads/EcubeThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Processors/DataThreads/EcubeThread.cpp b/Source/Processors/DataThreads/EcubeThread.cpp index 47e9e8048..d435cea37 100644 --- a/Source/Processors/DataThreads/EcubeThread.cpp +++ b/Source/Processors/DataThreads/EcubeThread.cpp @@ -493,7 +493,7 @@ bool EcubeThread::updateBuffer() if (pDevInt->buf_timestamp_locked) { // 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; } else -- GitLab