diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-02 15:49:53 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-02 15:49:53 -0700 |
commit | 33193a06c1bc197a603f831109533230dc14b4c9 (patch) | |
tree | 9d24eef219b48f9f661a3642efcc36050b1c0f9a /host/lib/usrp/dboard/db_wbx.cpp | |
parent | a4494bc2c985919aee7119ed401c72f41cde206e (diff) | |
download | uhd-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_wbx.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_wbx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_wbx.cpp b/host/lib/usrp/dboard/db_wbx.cpp index 4cf168c6b..95dcb3802 100644 --- a/host/lib/usrp/dboard/db_wbx.cpp +++ b/host/lib/usrp/dboard/db_wbx.cpp @@ -248,7 +248,7 @@ void wbx_xcvr::set_tx_gain(float gain, const std::string &name){ //write the new voltage to the aux dac this->get_iface()->write_aux_dac(dboard_iface::UNIT_TX, 0, dac_volts); } - else UHD_ASSERT_THROW(false); + else UHD_THROW_INVALID_CODE_PATH(); } void wbx_xcvr::set_rx_gain(float gain, const std::string &name){ @@ -260,7 +260,7 @@ void wbx_xcvr::set_rx_gain(float gain, const std::string &name){ //write the new gain to atr regs update_atr(); } - else UHD_ASSERT_THROW(false); + else UHD_THROW_INVALID_CODE_PATH(); } /*********************************************************************** |