summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usrp2/host/apps/tx_samples.cc11
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;