diff options
author | Dan Williams <dcbw@redhat.com> | 2012-01-13 14:56:04 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-01-13 14:56:04 -0600 |
commit | b24561e99eab939d49c1a33c64a4b1af6a68faaf (patch) | |
tree | a60cc844a88e8f7c5911af88d361b0bef5ac31b4 | |
parent | a6548ebe40145865aff925877d9ceabdc54c9b57 (diff) |
decode: don't try interpreting non-WMC data as WMC
-rw-r--r-- | decode/wmc.py | 3 |
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: |