decode: don't try interpreting non-WMC data as WMC

This commit is contained in:
Dan Williams
2012-01-13 14:56:04 -06:00
parent a6548ebe40
commit b24561e99e

View File

@@ -193,6 +193,9 @@ cmds = { 0x06: ("DEVICE_INFO", show_device_info),
} }
def show(data, prefix, direction): def show(data, prefix, direction):
if ord(data[:1]) != 0xC8:
return
data = data[1:] # skip 0xC8 header data = data[1:] # skip 0xC8 header
cmdno = ord(data[:1]) cmdno = ord(data[:1])
try: try: