summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-11-18 11:03:27 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-11-18 11:03:27 -0800
commit3c7484f9647f87925a82a6ce20800915e5c22c13 (patch)
tree5744becc237d3797946402d0f643e7eedd0c8bdd
parent6b484a59a40d8a576e71886b88414803c493a322 (diff)
parent5692768e25c5e17c1517abde550530f59150dd37 (diff)
downloaduhd-3c7484f9647f87925a82a6ce20800915e5c22c13.tar.gz
uhd-3c7484f9647f87925a82a6ce20800915e5c22c13.tar.bz2
uhd-3c7484f9647f87925a82a6ce20800915e5c22c13.zip
Merge branch 'maint'
-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;