diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-04-15 17:50:42 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-04-15 18:17:01 +0200 |
commit | e238c178b21e629b41773f3b156af5b3ce28c471 (patch) | |
tree | 2d61ea066e34edb302eb2f41e042f6487e0cdd05 /host/lib | |
parent | fbde92c7b621506fc73bceb19364d0d545ea851c (diff) | |
download | uhd-e238c178b21e629b41773f3b156af5b3ce28c471.tar.gz uhd-e238c178b21e629b41773f3b156af5b3ce28c471.tar.bz2 uhd-e238c178b21e629b41773f3b156af5b3ce28c471.zip |
multi_usrp: Fixed bug which caused unspecified OTW-format to crash apps
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |