Skip to content
Snippets Groups Projects
Commit d02b7a2b authored by Bruce Flynn's avatar Bruce Flynn
Browse files

Fix attr name in prune script

parent 58a71e9a
No related branches found
Tags v1.0-20220512.1
No related merge requests found
...@@ -22,8 +22,8 @@ def pack_hdr_bytes(hdr): ...@@ -22,8 +22,8 @@ def pack_hdr_bytes(hdr):
with open(args.outfile, 'wb') as fptr: with open(args.outfile, 'wb') as fptr:
idx = 0 idx = 0
for pkt in stream.PacketStream(open(args.pdsfile)): for pkt in stream.PacketStream(open(args.pdsfile)):
h1 = pkt._primary_header h1 = pkt.primary_header
h2 = pkt._secondary_header h2 = pkt.secondary_header
if h2: if h2:
h1.data_length_minus1 = c.sizeof(h2) - 1 h1.data_length_minus1 = c.sizeof(h2) - 1
fptr.write(h1) fptr.write(h1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment