aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-28 21:59:29 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-05-25 17:14:43 +0200
commitc01ddf5ff3bf0fc4a278f3b60ee27ded3e327560 (patch)
tree22c33c722f496631fdef05df91c848c69917fa81
parent380067eeea198692af2ab0cb2e5085ea0b985240 (diff)
LMS_Device: Set ts_offset to 0.
I'm not quite sure what the ts_offset is for, but by using "0" we are now receiving exactly the timestamp that we're expecting: LMSDevice.cpp:486 [tid=140576250332928] chan 0 recv buffer of len 2500 expect 305ed0 got 305ed0 (305ed0) diff=0 Change-Id: I270c94945b1af9662cfc468cfda1ae3af3ac0a27
-rw-r--r--Transceiver52M/device/lms/LMSDevice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp
index 9cfa96d..5f25da5 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -131,7 +131,8 @@ int LMSDevice::open(const std::string &args, int ref, bool swap_channels)
goto out_close;
LOG(DEBUG) << "Sample Rate: Host=" << sr_host << " RF=" << sr_rf;
/* FIXME: make this device/model dependent, like UHDDevice:dev_param_map! */
- ts_offset = static_cast<TIMESTAMP>(8.9e-5 * GSMRATE);
+ //ts_offset = static_cast<TIMESTAMP>(8.9e-5 * GSMRATE);
+ ts_offset = 0;
switch (ref) {
case REF_INTERNAL: