From: Srinivas Naga Vutukuri Date: Sun, 21 Mar 2010 16:38:17 +0000 (-0700) Subject: Applied patch from Srinivas Vutukuri to have tx_samples accept -g X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a5d7313aaab2e6d85ffeabae0d97dc44fb0d93de;p=debian%2Fgnuradio 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. --- diff --git a/usrp2/host/apps/tx_samples.cc b/usrp2/host/apps/tx_samples.cc index 5c3728fb..3e41bbf8 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;