From b24561e99eab939d49c1a33c64a4b1af6a68faaf Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 13 Jan 2012 14:56:04 -0600 Subject: decode: don't try interpreting non-WMC data as WMC --- decode/wmc.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decode/wmc.py') diff --git a/decode/wmc.py b/decode/wmc.py index cf7d9a91..87d72740 100644 --- a/decode/wmc.py +++ b/decode/wmc.py @@ -193,6 +193,9 @@ cmds = { 0x06: ("DEVICE_INFO", show_device_info), } def show(data, prefix, direction): + if ord(data[:1]) != 0xC8: + return + data = data[1:] # skip 0xC8 header cmdno = ord(data[:1]) try: -- cgit v1.2.3-70-g09d2