commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6739 - gnuradio/branches/releases/3.1/gnuradio-exampl


From: jcorgan
Subject: [Commit-gnuradio] r6739 - gnuradio/branches/releases/3.1/gnuradio-examples/python/digital
Date: Mon, 29 Oct 2007 09:58:43 -0600 (MDT)

Author: jcorgan
Date: 2007-10-29 09:58:42 -0600 (Mon, 29 Oct 2007)
New Revision: 6739

Modified:
   
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_loopback.py
   
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_tx.py
Log:
Applied changeset r6733 on trunk to release branch.

Modified: 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_loopback.py
===================================================================
--- 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_loopback.py
       2007-10-29 15:55:56 UTC (rev 6738)
+++ 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_loopback.py
       2007-10-29 15:58:42 UTC (rev 6739)
@@ -183,7 +183,7 @@
     pkt_size = int(options.size)
 
     while n < nbytes:
-        send_pkt(struct.pack('!H', pktno) + (pkt_size - 2) * chr(pktno & 0xff))
+        send_pkt(struct.pack('!H', pktno & 0xffff) + (pkt_size - 2) * 
chr(pktno & 0xff))
         n += pkt_size
         pktno += 1
         

Modified: 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_tx.py
===================================================================
--- 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_tx.py 
    2007-10-29 15:55:56 UTC (rev 6738)
+++ 
gnuradio/branches/releases/3.1/gnuradio-examples/python/digital/benchmark_tx.py 
    2007-10-29 15:58:42 UTC (rev 6739)
@@ -116,7 +116,7 @@
             if data == '':
                 break;
 
-        payload = struct.pack('!H', pktno) + data
+        payload = struct.pack('!H', pktno & 0xffff) + data
         send_pkt(payload)
         n += len(payload)
         sys.stderr.write('.')





reply via email to

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