diff options
author | Srinivas Naga Vutukuri | 2010-03-21 09:38:17 -0700 |
---|---|---|
committer | Johnathan Corgan | 2010-04-17 09:52:38 -0700 |
commit | a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de (patch) | |
tree | c53a196666dcb87c5e42dd2ccfba45a42b411122 /usrp2/host/apps | |
parent | aeba81012857f6a73c125b8d035c3c15572b3439 (diff) | |
download | gnuradio-a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de.tar.gz gnuradio-a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de.tar.bz2 gnuradio-a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de.zip |
Applied patch from Srinivas Vutukuri to have tx_samples accept -g
Date: Tue, 19 Jan 2010 18:15:08 +0530
From: srinivas naga vutukuri <srinivas.vutukuri@gmail.com>
To: discuss-gnuradio@gnu.org
Subject: [Discuss-gnuradio] tx_samples.cc is not accepting the gain
parameter input.
Hi,
I observed that tx_samples.cc is not accepting the gain input parameter
(ie., -g option). I just changed like this in my code.
Its working, so posting the changes. If it is acceptable please take it.
best regards,
srinivas.
Diffstat (limited to 'usrp2/host/apps')
-rw-r--r-- | usrp2/host/apps/tx_samples.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usrp2/host/apps/tx_samples.cc b/usrp2/host/apps/tx_samples.cc index 5c3728fb1..3e41bbf8d 100644 --- a/usrp2/host/apps/tx_samples.cc +++ b/usrp2/host/apps/tx_samples.cc @@ -150,6 +150,10 @@ main(int argc, char **argv) interp = strtol(optarg, 0, 0); break; + case 'g': + gain = strtod(optarg, 0); + break; + case 'S': if (!strtod_si(optarg, &tmp)){ std::cerr << "invalid number: " << optarg << std::endl; |