commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r3653 - gnuradio/branches/developers/eb/digital-wip/gn


From: eb
Subject: [Commit-gnuradio] r3653 - gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2
Date: Tue, 26 Sep 2006 20:12:20 -0600 (MDT)

Author: eb
Date: 2006-09-26 20:12:20 -0600 (Tue, 26 Sep 2006)
New Revision: 3653

Modified:
   
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_rx.py
   
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_tx.py
Log:
formatting

Modified: 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_rx.py
===================================================================
--- 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_rx.py
  2006-09-27 01:43:07 UTC (rev 3652)
+++ 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_rx.py
  2006-09-27 02:12:20 UTC (rev 3653)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 #
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005,2006 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 

Modified: 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_tx.py
===================================================================
--- 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_tx.py
  2006-09-27 01:43:07 UTC (rev 3652)
+++ 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/benchmark_tx.py
  2006-09-27 02:12:20 UTC (rev 3653)
@@ -89,9 +89,6 @@
         parser.print_help(sys.stderr)
         sys.exit(1)
 
-
-    pkt_size = int(options.size)
-
     # build the graph
     fg = my_graph(mods[options.modulation], options)
 
@@ -101,10 +98,12 @@
 
     fg.start()                       # start flow graph
 
+
     # generate and send packets
     nbytes = int(1e6 * options.megabytes)
     n = 0
     pktno = 0
+    pkt_size = int(options.size)
 
     while n < nbytes:
         send_pkt(struct.pack('!H', pktno) + (pkt_size - 2) * chr(pktno & 0xff))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]