From 0754e149eb5bcd565788937fef37d8fc5cf46c9b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 1 Aug 2015 11:43:46 +0200 Subject: Add TAG *dmy to edi decoder --- edi/edidebug.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'edi') diff --git a/edi/edidebug.py b/edi/edidebug.py index 37baebd..e70cb2b 100755 --- a/edi/edidebug.py +++ b/edi/edidebug.py @@ -378,6 +378,7 @@ def tagitems(tagpacket): yield {'name': name, 'length': length, 'value': tag_value} i += 8 + length + p.pr("Completed decoding all TAG items after {} bytes".format(i)) def decode_tag(tagpacket): p.pr("Tag packet len={}".format(len(tagpacket))) @@ -389,6 +390,8 @@ def decode_tag(tagpacket): decode_deti(item) elif item['name'].startswith("est"): decode_estn(item) + elif item['name'] == "*dmy": + decode_stardmy(item) else: p.hexpr("Tag item '{}'".format(item['name']), item['value']) @@ -409,6 +412,9 @@ def decode_starptr(item): p.dec() +def decode_stardmy(item): + p.pr("TAG item {} ({})".format(item['name'], item['length'])) + item_deti_header_struct = "!BBBBH" def decode_deti(item): -- cgit v1.2.3