diff options
author | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-08-08 00:51:34 +0000 |
---|---|---|
committer | ttsou <ttsou@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2012-08-08 00:51:34 +0000 |
commit | 221f23ee4414ca9b3184f731dc626199fb0e03c3 (patch) | |
tree | 040d3f3869b2d1527820802bfae24d06d02ae8b7 /Transceiver52M | |
parent | 2173abfe56edbffbf8ca265523a35e7a566db66a (diff) |
transceiver: uhd: allow underrun flag to reset during timing alignment
Allowing the underrun flag to reset will prevent a single event from
causing large jumps in the transmit latency threshold. This should
keep unreasonable timing latencies from occurring (e.g. latencies of
20+ frames).
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3981 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M')
-rw-r--r-- | Transceiver52M/UHDDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index d4ba580..24dd0f6 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -705,10 +705,10 @@ int uhd_device::writeSamples(short *buf, int len, bool *underrun, if (drop_cnt == 1) { LOG(DEBUG) << "Aligning transmitter: stop burst"; + *underrun = true; metadata.end_of_burst = true; } else if (drop_cnt < 30) { LOG(DEBUG) << "Aligning transmitter: packet advance"; - *underrun = true; return len; } else { LOG(DEBUG) << "Aligning transmitter: start burst"; |