diff options
-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 |