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_xcvr2450.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_xcvr2450.cpp')
| -rw-r--r-- | host/lib/usrp/dboard/db_xcvr2450.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp index d4d5f184e..974a378bd 100644 --- a/host/lib/usrp/dboard/db_xcvr2450.cpp +++ b/host/lib/usrp/dboard/db_xcvr2450.cpp @@ -375,7 +375,7 @@ static max2829_regs_t::tx_baseband_gain_t gain_to_tx_bb_reg(float &gain){ gain = 5; return max2829_regs_t::TX_BASEBAND_GAIN_5DB; } - UHD_ASSERT_THROW(false); + UHD_THROW_INVALID_CODE_PATH(); } /*! @@ -417,7 +417,7 @@ void xcvr2450::set_tx_gain(float gain, const std::string &name){ _max2829_regs.tx_baseband_gain = gain_to_tx_bb_reg(gain); send_reg(0x9); } - else UHD_ASSERT_THROW(false); + else UHD_THROW_INVALID_CODE_PATH(); _tx_gains[name] = gain; } @@ -431,7 +431,7 @@ void xcvr2450::set_rx_gain(float gain, const std::string &name){ _max2829_regs.rx_lna_gain = gain_to_rx_lna_reg(gain); send_reg(0xB); } - else UHD_ASSERT_THROW(false); + else UHD_THROW_INVALID_CODE_PATH(); _rx_gains[name] = gain; } |
