diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-05 17:41:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-05 17:41:45 -0700 |
commit | 38995223825c741cdf22ca2977ec9edf82fe2ae1 (patch) | |
tree | 5c2fd8691e9c0cb23a68876e06a8ac063080ac84 /host/lib/usrp/dboard/db_xcvr2450.cpp | |
parent | f27400cd391d2d276df964d8c26ee08aa8ca3662 (diff) | |
download | uhd-38995223825c741cdf22ca2977ec9edf82fe2ae1.tar.gz uhd-38995223825c741cdf22ca2977ec9edf82fe2ae1.tar.bz2 uhd-38995223825c741cdf22ca2977ec9edf82fe2ae1.zip |
fixed exception case
Diffstat (limited to 'host/lib/usrp/dboard/db_xcvr2450.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_xcvr2450.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_xcvr2450.cpp b/host/lib/usrp/dboard/db_xcvr2450.cpp index 3bf866fc8..3472229f4 100644 --- a/host/lib/usrp/dboard/db_xcvr2450.cpp +++ b/host/lib/usrp/dboard/db_xcvr2450.cpp @@ -373,8 +373,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; } - BOOST_THROW_EXCEPTION(std::runtime_error("should not get here")); - return max2829_regs_t::TX_BASEBAND_GAIN_0DB; + UHD_ASSERT_THROW(false); } /*! |