aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/lms/LMSDevice.cpp
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-28 21:58:03 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-13 21:45:32 +0000
commit68f054169baacac7c31d3ee3488dd94bae657614 (patch)
treee2b79986cc297b1f77f733d308b68a31a8aed1df /Transceiver52M/device/lms/LMSDevice.cpp
parentea8be22e5031d9d160a6f8b4e3e2133476b03d7d (diff)
LMSDevice: Fix initial timestamp offset of 2500
ts_initial must not point to the timestamp of the first sample in the last "flush" sample buffer, but to the first timestamp we expect in the next buffer. Change-Id: I23af62870544d4c6cf5f6e2d6578936603bceb91
Diffstat (limited to 'Transceiver52M/device/lms/LMSDevice.cpp')
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 3b2ce5e..9cfa96d 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -345,7 +345,7 @@ bool LMSDevice::flush_recv(size_t num_pkts)
return false;
}
- ts_initial = rx_metadata.timestamp;
+ ts_initial = rx_metadata.timestamp + len;
}
LOG(INFO) << "Initial timestamp " << ts_initial << std::endl;