mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-19 07:53:59 +00:00
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> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6817 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
parent
ece2c027a5
commit
b8b6625287
1 changed files with 5 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue