aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-11-18 10:12:30 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-11-18 10:12:30 -0800
commit5692768e25c5e17c1517abde550530f59150dd37 (patch)
treeeeda553d41c4c59c58e6959abcd914813611a7ba
parent6bb62ea374849e36c927be64dbf408c065bc9e8b (diff)
downloaduhd-5692768e25c5e17c1517abde550530f59150dd37.tar.gz
uhd-5692768e25c5e17c1517abde550530f59150dd37.tar.bz2
uhd-5692768e25c5e17c1517abde550530f59150dd37.zip
lib: dbsrx2 bugfix
-rw-r--r--host/lib/usrp/dboard/db_dbsrx2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_dbsrx2.cpp b/host/lib/usrp/dboard/db_dbsrx2.cpp
index 013f3178a..8a8f61a69 100644
--- a/host/lib/usrp/dboard/db_dbsrx2.cpp
+++ b/host/lib/usrp/dboard/db_dbsrx2.cpp
@@ -358,12 +358,12 @@ double dbsrx2::set_gain(double gain, const std::string &name){
* Bandwidth Handling
**********************************************************************/
double dbsrx2::set_bandwidth(double bandwidth){
- //convert complex bandpass to lowpass bandwidth
- bandwidth = bandwidth/2.0;
-
//clip the input
bandwidth = dbsrx2_bandwidth_range.clip(bandwidth);
+ //convert complex bandpass to lowpass bandwidth
+ bandwidth = bandwidth/2.0;
+
_max2112_write_regs.lp = int((bandwidth/1e6 - 4)/0.29 + 12);
_bandwidth = double(4 + (_max2112_write_regs.lp - 12) * 0.29)*1e6;