Applied patch from Srinivas Vutukuri to have tx_samples accept -g
authorSrinivas Naga Vutukuri <srinivas.vutukuri@gmail.com>
Sun, 21 Mar 2010 16:38:17 +0000 (09:38 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Sat, 17 Apr 2010 16:52:38 +0000 (09:52 -0700)
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.

usrp2/host/apps/tx_samples.cc

index 5c3728fb1518d2859dc1b56fc6bb089c5e33f9d1..3e41bbf8d0ad454627f225ecd83fb39f4b8c3e19 100644 (file)
@@ -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;