aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/lms
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-28 22:13:31 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-13 21:45:32 +0000
commit79024867deea5ce788d958df7cdac56ed4de051b (patch)
treebf892d73350b0d55fe6eea1042951b59a1c7132a /Transceiver52M/device/lms
parent4aec1f1cf5d955951bb5f0de9e5eaf3fd34ef4e0 (diff)
LMSDevice: Reduce Rx logging verbosity: Only log unexpected timestamps
Diffstat (limited to 'Transceiver52M/device/lms')
-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 5f25da5..2a40f46 100644
--- a/Transceiver52M/device/lms/LMSDevice.cpp
+++ b/Transceiver52M/device/lms/LMSDevice.cpp
@@ -483,7 +483,8 @@ int LMSDevice::readSamples(std::vector < short *>&bufs, int len, bool * overrun,
for (i = 0; i<chans; i++) {
thread_enable_cancel(false);
rc = LMS_RecvStream(&m_lms_stream_rx[i], bufs[i], len, &rx_metadata, 100);
- LOG(ALERT) << "chan "<< i << " recv buffer of len " << rc << " expect " << std::hex << timestamp << " got " << std::hex << (TIMESTAMP)rx_metadata.timestamp << " (" << std::hex << rx_metadata.timestamp <<") diff=" << rx_metadata.timestamp - timestamp;
+ if (timestamp != (TIMESTAMP)rx_metadata.timestamp)
+ LOG(ALERT) << "chan "<< i << " recv buffer of len " << rc << " expect " << std::hex << timestamp << " got " << std::hex << (TIMESTAMP)rx_metadata.timestamp << " (" << std::hex << rx_metadata.timestamp <<") diff=" << rx_metadata.timestamp - timestamp;
if (rc != len) {
LOG(ALERT) << "LMS: Device receive timed out";
}