aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/db_rfx.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-02 15:49:53 -0700
committerJosh Blum <josh@joshknows.com>2010-06-02 15:49:53 -0700
commit33193a06c1bc197a603f831109533230dc14b4c9 (patch)
tree9d24eef219b48f9f661a3642efcc36050b1c0f9a /host/lib/usrp/dboard/db_rfx.cpp
parenta4494bc2c985919aee7119ed401c72f41cde206e (diff)
downloaduhd-33193a06c1bc197a603f831109533230dc14b4c9.tar.gz
uhd-33193a06c1bc197a603f831109533230dc14b4c9.tar.bz2
uhd-33193a06c1bc197a603f831109533230dc14b4c9.zip
replaced the assert falses with an invalid code path exception
Diffstat (limited to 'host/lib/usrp/dboard/db_rfx.cpp')
-rw-r--r--host/lib/usrp/dboard/db_rfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_rfx.cpp b/host/lib/usrp/dboard/db_rfx.cpp
index 5b90bbbad..17fc00d24 100644
--- a/host/lib/usrp/dboard/db_rfx.cpp
+++ b/host/lib/usrp/dboard/db_rfx.cpp
@@ -247,7 +247,7 @@ static float rx_pga0_gain_to_dac_volts(float &gain){
void rfx_xcvr::set_tx_gain(float, const std::string &name){
assert_has(rfx_tx_gain_ranges.keys(), name, "rfx tx gain name");
- UHD_ASSERT_THROW(false); //no gains to set
+ UHD_THROW_INVALID_CODE_PATH(); //no gains to set
}
void rfx_xcvr::set_rx_gain(float gain, const std::string &name){
@@ -259,7 +259,7 @@ void rfx_xcvr::set_rx_gain(float gain, const std::string &name){
//write the new voltage to the aux dac
this->get_iface()->write_aux_dac(dboard_iface::UNIT_RX, 1, dac_volts);
}
- else UHD_ASSERT_THROW(false);
+ else UHD_THROW_INVALID_CODE_PATH();
}
/***********************************************************************