From 55f9faf59065140a3b84f63c6b6deda9909c6f19 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Mon, 19 Jan 2009 21:21:40 +0000 Subject: only set scale_iq if asked git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10261 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/host/apps/tx_samples.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/usrp2/host/apps/tx_samples.cc b/usrp2/host/apps/tx_samples.cc index e497e023e..8ce643f0a 100644 --- a/usrp2/host/apps/tx_samples.cc +++ b/usrp2/host/apps/tx_samples.cc @@ -100,7 +100,7 @@ main(int argc, char **argv) double freq = 0; int32_t interp = 32; int32_t samples_per_frame = MAX_SAMPLES; - int32_t scale = 3000; + int32_t scale = -1; double gain = GAIN_NOT_SET; int ch; @@ -225,12 +225,13 @@ main(int argc, char **argv) return 1; } - if (!u2->set_tx_scale_iq(scale, scale)){ - std::cerr << "set_tx_scale_iq failed\n"; - return 1; + if (scale != -1){ + if (!u2->set_tx_scale_iq(scale, scale)){ + std::cerr << "set_tx_scale_iq failed\n"; + return 1; + } } - usrp2::tx_metadata md; md.timestamp = -1; md.start_of_burst = 1; -- cgit