aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2016-12-16 17:01:58 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-12 15:15:37 -0800
commit8cf404c6b261bed98d0f551dffbabe050c9f490e (patch)
treef2255f90ccea03b8b8d6723c6e6af3ce5ffe0d58 /host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
parent2a3b85a892c3f6f90d5e828d1f406c3d39804023 (diff)
downloaduhd-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.cpp2
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. */