mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-03 13:23:16 +00:00
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
This commit is contained in:
@@ -552,7 +552,7 @@ int uhd_device::readSamples(short *buf, int len, bool *overrun,
|
|||||||
case ERROR_TIMING:
|
case ERROR_TIMING:
|
||||||
restart(prev_ts);
|
restart(prev_ts);
|
||||||
case ERROR_UNHANDLED:
|
case ERROR_UNHANDLED:
|
||||||
return 0;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user