From 8cf404c6b261bed98d0f551dffbabe050c9f490e Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Fri, 16 Dec 2016 17:01:58 -0800 Subject: ad9361: assign before throw --- host/lib/usrp/common/ad9361_driver/ad9361_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.cpp') 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. */ -- cgit v1.2.3