laforge
/
openbts-osmo
Archived
1
0
Fork 0

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>
This commit is contained in:
Thomas Tsou 2011-10-20 16:37:15 -04:00
parent 7e3692c087
commit b667ea6267
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ int uhd_device::readSamples(short *buf, int len, bool *overrun,
case ERROR_TIMING:
restart(prev_ts);
case ERROR_UNHANDLED:
return 0;
continue;
}