From 5d856f8a8084fc00fe3f6332263ec0277ebab694 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 3 Sep 2018 00:15:47 +0200 Subject: [PATCH] SDRDaemonSink: corrected sample count wrap around calculation --- plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp index cb54090f7..6ffe18fc5 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkgui.cpp @@ -612,7 +612,7 @@ void SDRdaemonSinkGui::analyzeApiReply(const QJsonObject& jsonObject) sampleCount = report["samplesCount"].toInt(); if (sampleCount < m_lastSampleCount) { - sampleCountDelta = (0xFFFFFFFFU - sampleCount) + m_lastSampleCount + 1; + sampleCountDelta = (0xFFFFFFFFU - m_lastSampleCount) + sampleCount + 1; } else { sampleCountDelta = sampleCount - m_lastSampleCount; }