Skip to content

Commit

Permalink
Fix SAPCAR
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRaysTeam committed Aug 6, 2024
1 parent 115a7c3 commit 05111ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysap/SAPCAR.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SAPCARCompressedBlobFormat(PacketNoPadded):
StrFixedLenField("magic_bytes", b"\x1f\x9d", 2),
ByteField("special", 2),
ConditionalField(StrField("blob", None, remain=4), lambda x: x.compressed_length <= 8),
ConditionalField(StrFixedLenField("blob", None, length_from=lambda x: x.compressed_length - 8),
ConditionalField(StrFixedLenField("blob2", None, length_from=lambda x: x.compressed_length - 8),
lambda x: x.compressed_length > 8),
]

Expand Down

0 comments on commit 05111ff

Please sign in to comment.