From e238c178b21e629b41773f3b156af5b3ce28c471 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 15 Apr 2014 17:50:42 +0200 Subject: multi_usrp: Fixed bug which caused unspecified OTW-format to crash apps --- host/lib/usrp/multi_usrp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/multi_usrp.cpp') diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 4883b2410..166b0cb37 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -1196,7 +1196,7 @@ private: // Assumption is that all mboards use the same link bool _check_link_rate(const stream_args_t &args, bool is_tx) { bool link_rate_is_ok = true; - size_t bytes_per_sample = convert::get_bytes_per_item(args.otw_format); + size_t bytes_per_sample = convert::get_bytes_per_item(args.otw_format.empty() ? "sc16" : args.otw_format); double max_link_rate = 0; double sum_rate = 0; BOOST_FOREACH(const size_t chan, args.channels) { -- cgit v1.2.3