aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/benchmark_rx_rate.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-10 00:37:55 +0000
committerJosh Blum <josh@joshknows.com>2010-07-10 00:37:55 +0000
commitded12d29fb6b85e39f14edc37a659e5eb5370e46 (patch)
treed6a9c907ecebcb65d54cd880136c9ec88a0106ee /host/examples/benchmark_rx_rate.cpp
parent8dd01e451e9102db06daed171c18d9fbb848df97 (diff)
parentbf77d1f6e38e1cb561520408ecff8f633f5cefc7 (diff)
downloaduhd-ded12d29fb6b85e39f14edc37a659e5eb5370e46.tar.gz
uhd-ded12d29fb6b85e39f14edc37a659e5eb5370e46.tar.bz2
uhd-ded12d29fb6b85e39f14edc37a659e5eb5370e46.zip
Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/examples/benchmark_rx_rate.cpp')
-rw-r--r--host/examples/benchmark_rx_rate.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/examples/benchmark_rx_rate.cpp b/host/examples/benchmark_rx_rate.cpp
index 7b512e56e..ba4dd34d0 100644
--- a/host/examples/benchmark_rx_rate.cpp
+++ b/host/examples/benchmark_rx_rate.cpp
@@ -53,10 +53,13 @@ static inline void test_device(
uhd::io_type_t::COMPLEX_FLOAT32,
uhd::device::RECV_MODE_ONE_PACKET
);
- if (num_rx_samps == 0){
+ if (num_rx_samps == 0 and md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT){
std::cerr << "Unexpected timeout on recv, exit test..." << std::endl;
return;
}
+ if (num_rx_samps == 0){
+ std::cerr << "Unexpected error on recv, continuing..." << std::endl;
+ }
if (not md.has_time_spec){
std::cerr << "Metadata missing time spec, exit test..." << std::endl;
return;