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/python/digital/benchmark_tx.py | |
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/python/digital/benchmark_tx.py')
-rwxr-xr-x | gnuradio-examples/python/digital/benchmark_tx.py | 2 |
1 files changed, 1 insertions, 1 deletions
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('.') |