diff options
author | Thomas Tsou <tom@tsou.cc> | 2013-10-25 14:42:00 +0000 |
---|---|---|
committer | Thomas Tsou <tom@tsou.cc> | 2013-11-07 23:07:49 -0500 |
commit | cf910dcdda1c3e4cdaf3c0d621e4884d08cbc917 (patch) | |
tree | 5d7078acb561d700f9cb479ad58b5cf2cc4d21ab | |
parent | 69762fd7c66afd7ccce8afd162c060212ecfef6d (diff) |
Transceiver52M: Reset overrun and underrun indicators
Underruns are only explicitly set on the downlink side. Overruns
are logged but unused. In either case, reset indicators to false
to avoid sending false state information.
Signed-off-by: Thomas Tsou <tom@tsou.cc>
-rw-r--r-- | Transceiver52M/UHDDevice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index a392222..d47e800 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -727,6 +727,9 @@ int uhd_device::readSamples(short *buf, int len, bool *overrun, if (skip_rx) return 0; + *overrun = false; + *underrun = false; + // Shift read time with respect to transmit clock timestamp += ts_offset; @@ -801,6 +804,8 @@ int uhd_device::writeSamples(short *buf, int len, bool *underrun, metadata.end_of_burst = false; metadata.time_spec = convert_time(timestamp, tx_rate); + *underrun = false; + // No control packets if (isControl) { LOG(ERR) << "Control packets not supported"; |