aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-09-28 18:04:35 -0700
committerNick Foster <nick@nerdnetworks.org>2010-09-28 18:04:35 -0700
commit560cbf9a2900a02391f025a3fd50a1616893c8c7 (patch)
treea7a920e09576313575be75bc8475d4d02b79c7b0 /host/lib
parent450abc5b213fc477ae0f2d648405a8b6a55a7b03 (diff)
downloaduhd-560cbf9a2900a02391f025a3fd50a1616893c8c7.tar.gz
uhd-560cbf9a2900a02391f025a3fd50a1616893c8c7.tar.bz2
uhd-560cbf9a2900a02391f025a3fd50a1616893c8c7.zip
TVRX: Fixed spectrum inversion (derp derp derp). Removed debug printing.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index f5b544c18..83a638810 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -54,7 +54,7 @@ using namespace boost::assign;
/***********************************************************************
* The tvrx constants
**********************************************************************/
-static const bool tvrx_debug = true;
+static const bool tvrx_debug = false;
static const freq_range_t tvrx_freq_range(50e6, 860e6);
@@ -218,10 +218,9 @@ tvrx::~tvrx(void){
*/
static std::string get_band(double freq) {
- std::cout << "get_band called with freq " << freq << std::endl;
BOOST_FOREACH(const std::string &band, tvrx_freq_ranges.keys()) {
if(freq >= tvrx_freq_ranges[band].min && freq <= tvrx_freq_ranges[band].max){
- std::cout << "Holy poop you're in band " << band << std::endl;
+ if(tvrx_debug) std::cout << "Band: " << band << std::endl;
return band;
}
}
@@ -404,7 +403,7 @@ void tvrx::rx_get(const wax::obj &key_, wax::obj &val){
return;
case SUBDEV_PROP_FREQ:
- val = _lo_freq - 2*tvrx_if_freq;
+ val = _lo_freq;
return;
case SUBDEV_PROP_FREQ_RANGE: