diff options
author | eb | 2007-10-29 05:54:51 +0000 |
---|---|---|
committer | eb | 2007-10-29 05:54:51 +0000 |
commit | cdc4b7416c50dd46c666220e01ff1bd6101085ab (patch) | |
tree | 170f82c26bab6162a5d4bebce988fa81f1a097fa /gnuradio-examples | |
parent | d3bc8c2ce9fdf9adec90b77e2da44e3b9d0a43bf (diff) | |
download | gnuradio-cdc4b7416c50dd46c666220e01ff1bd6101085ab.tar.gz gnuradio-cdc4b7416c50dd46c666220e01ff1bd6101085ab.tar.bz2 gnuradio-cdc4b7416c50dd46c666220e01ff1bd6101085ab.zip |
eliminate warning when pktno > 64K
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6733 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_loopback.py | 2 | ||||
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_tx.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-examples/python/digital/benchmark_loopback.py b/gnuradio-examples/python/digital/benchmark_loopback.py index 7dd36b986..e9a0f5d5a 100755 --- a/gnuradio-examples/python/digital/benchmark_loopback.py +++ b/gnuradio-examples/python/digital/benchmark_loopback.py @@ -183,7 +183,7 @@ def main(): 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 diff --git a/gnuradio-examples/python/digital/benchmark_tx.py b/gnuradio-examples/python/digital/benchmark_tx.py index a0a10d783..9644ffb33 100755 --- a/gnuradio-examples/python/digital/benchmark_tx.py +++ b/gnuradio-examples/python/digital/benchmark_tx.py @@ -116,7 +116,7 @@ def main(): 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('.') |