diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-12-16 17:01:58 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-01-12 15:15:37 -0800 |
commit | 8cf404c6b261bed98d0f551dffbabe050c9f490e (patch) | |
tree | f2255f90ccea03b8b8d6723c6e6af3ce5ffe0d58 /host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | |
parent | 2a3b85a892c3f6f90d5e828d1f406c3d39804023 (diff) | |
download | uhd-8cf404c6b261bed98d0f551dffbabe050c9f490e.tar.gz uhd-8cf404c6b261bed98d0f551dffbabe050c9f490e.tar.bz2 uhd-8cf404c6b261bed98d0f551dffbabe050c9f490e.zip |
ad9361: assign before throw
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.cpp')
-rw-r--r-- | host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp index 45ebf78bf..58663e8e5 100644 --- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp +++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp @@ -996,8 +996,8 @@ void ad9361_device_t::_program_gain_table() { gain_table = gain_table_4000mhz_to_6000mhz; new_gain_table = 3; } else { - throw uhd::runtime_error("[ad9361_device_t] Wrong _rx_freq value"); new_gain_table = 1; + throw uhd::runtime_error("[ad9361_device_t] Wrong _rx_freq value"); } /* Only re-program the gain table if there has been a band change. */ |