aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:18:36 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:18:36 +0000
commit513a6291833a589ac7b8fc791b051131d1b8f158 (patch)
tree9ec4de509190e771a6e6257376052d3dea2962e3 /Transceiver52M
parent9b557835d5fbdba543491f6a04f11b335653b2c4 (diff)
uhd: keep reading on overrun or other non-fatal errors
The readSamples call does not return less than the number of samples requested. Doing otherwise is a fatal error. So on overruns, which are not fatal, continue reading until the requested number of samples is received. Signed-off-by: Thomas Tsou <ttsou@vt.edu> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2671 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/UHDDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index c31c364..37a3b96 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -552,7 +552,7 @@ int uhd_device::readSamples(short *buf, int len, bool *overrun,
case ERROR_TIMING:
restart(prev_ts);
case ERROR_UNHANDLED:
- return 0;
+ continue;
}