aboutsummaryrefslogtreecommitdiff
path: root/decode
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-01-13 14:56:04 -0600
committerDan Williams <dcbw@redhat.com>2012-01-13 14:56:04 -0600
commitb24561e99eab939d49c1a33c64a4b1af6a68faaf (patch)
treea60cc844a88e8f7c5911af88d361b0bef5ac31b4 /decode
parenta6548ebe40145865aff925877d9ceabdc54c9b57 (diff)
decode: don't try interpreting non-WMC data as WMC
Diffstat (limited to 'decode')
-rw-r--r--decode/wmc.py3
1 files changed, 3 insertions, 0 deletions
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: