diff options
author | Jason Abele <jason@ettus.com> | 2011-09-21 10:53:35 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-09-21 16:03:36 -0700 |
commit | 42c7aaa480548716d211c3dcdd2ced1d3c79b510 (patch) | |
tree | 627989e5e7bd1e304433f7fae45ce661f3761c87 /host/lib | |
parent | 30cfade8252f2a82468227c1fb09aac635962fdd (diff) | |
download | uhd-42c7aaa480548716d211c3dcdd2ced1d3c79b510.tar.gz uhd-42c7aaa480548716d211c3dcdd2ced1d3c79b510.tar.bz2 uhd-42c7aaa480548716d211c3dcdd2ced1d3c79b510.zip |
Make unknown db complain usefully about antenna selection
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard/db_unknown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard/db_unknown.cpp b/host/lib/usrp/dboard/db_unknown.cpp index cd7ffe348..3a11f1e5b 100644 --- a/host/lib/usrp/dboard/db_unknown.cpp +++ b/host/lib/usrp/dboard/db_unknown.cpp @@ -176,8 +176,8 @@ void unknown_rx::rx_set(const wax::obj &key_, const wax::obj &val){ return; case SUBDEV_PROP_ANTENNA: - UHD_ASSERT_THROW(val.as<std::string>() == std::string("")); - return; + if (val.as<std::string>().empty()) return; + throw uhd::value_error("Unknown Daughterboard: No selectable antenna"); case SUBDEV_PROP_FREQ: return; // it wont do you much good, but you can set it @@ -276,8 +276,8 @@ void unknown_tx::tx_set(const wax::obj &key_, const wax::obj &val){ return; case SUBDEV_PROP_ANTENNA: - UHD_ASSERT_THROW(val.as<std::string>() == std::string("")); - return; + if (val.as<std::string>().empty()) return; + throw uhd::value_error("Unknown Daughterboard: No selectable antenna"); case SUBDEV_PROP_FREQ: return; // it wont do you much good, but you can set it |