diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-10-09 22:36:52 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-10-09 22:36:52 +0200 |
commit | 89351fa705159a0f0ec366d5f70b1c87a70837aa (patch) | |
tree | 60d32b6d86160b640763876cf037ca8ef2095c95 /edi | |
parent | 1fef96454d2976dbdf5e5346c34f54609bf173c2 (diff) | |
download | mmbtools-aux-89351fa705159a0f0ec366d5f70b1c87a70837aa.tar.gz mmbtools-aux-89351fa705159a0f0ec366d5f70b1c87a70837aa.tar.bz2 mmbtools-aux-89351fa705159a0f0ec366d5f70b1c87a70837aa.zip |
Add zeropad to edidebug.py
Diffstat (limited to 'edi')
-rwxr-xr-x | edi/edidebug.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/edi/edidebug.py b/edi/edidebug.py index d2515ff..c27a374 100755 --- a/edi/edidebug.py +++ b/edi/edidebug.py @@ -238,6 +238,7 @@ def get_rs_decoder(chunk_size, zeropad): for chunk, protection in rs_chunks: p.pr(" Protection") + #p.hexpr(" OF ZE CHUNK DATA", chunk); recalc_protection = rs_codec.encode(bytearray(chunk))[-48:] if (protection != recalc_protection): p.pr(" PROTECTION ERROR") @@ -249,9 +250,7 @@ def get_rs_decoder(chunk_size, zeropad): #p.hexpr(" ZE AF PACKET", afpacket) - assert(zeropad == 0) # not supported yet! - - return decode_af(afpacket) + return decode_af(afpacket[0:-zeropad]) return decode_rs |