X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-examples%2Fpython%2Fdigital%2Fbenchmark_loopback.py;fp=gnuradio-examples%2Fpython%2Fdigital%2Fbenchmark_loopback.py;h=e9a0f5d5ab6dbcf501361e7d1b8b2dd5246dff7e;hb=cdc4b7416c50dd46c666220e01ff1bd6101085ab;hp=7dd36b9868a282fb2294807b09b10df214fb2276;hpb=d3bc8c2ce9fdf9adec90b77e2da44e3b9d0a43bf;p=debian%2Fgnuradio diff --git a/gnuradio-examples/python/digital/benchmark_loopback.py b/gnuradio-examples/python/digital/benchmark_loopback.py index 7dd36b98..e9a0f5d5 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