From a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de Mon Sep 17 00:00:00 2001 From: Srinivas Naga Vutukuri Date: Sun, 21 Mar 2010 09:38:17 -0700 Subject: Applied patch from Srinivas Vutukuri to have tx_samples accept -g Date: Tue, 19 Jan 2010 18:15:08 +0530 From: srinivas naga vutukuri 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. --- usrp2/host/apps/tx_samples.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usrp2/host/apps') 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; -- cgit