diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-04-28 21:58:03 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-25 17:14:43 +0200 |
commit | 380067eeea198692af2ab0cb2e5085ea0b985240 (patch) | |
tree | e18428638fd4a71c0aae70228a1f73a12e5357f0 /Transceiver52M/device/lms/LMSDevice.cpp | |
parent | 6d000ba2f7191efbb15b4ea54bcf9c5cb5a528e1 (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.cpp | 2 |
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; |