diff options
author | jcorgan | 2009-01-19 21:21:40 +0000 |
---|---|---|
committer | jcorgan | 2009-01-19 21:21:40 +0000 |
commit | 55f9faf59065140a3b84f63c6b6deda9909c6f19 (patch) | |
tree | 8afe4fb7bc81c1a06c76c773345ce59a414bd2b0 | |
parent | e1661da333c29049c5dbca3eead1f49108c99d2a (diff) | |
download | gnuradio-55f9faf59065140a3b84f63c6b6deda9909c6f19.tar.gz gnuradio-55f9faf59065140a3b84f63c6b6deda9909c6f19.tar.bz2 gnuradio-55f9faf59065140a3b84f63c6b6deda9909c6f19.zip |
only set scale_iq if asked
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10261 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | usrp2/host/apps/tx_samples.cc | 11 |
1 files 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; |