diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-09 17:35:55 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-09-09 17:39:01 +0200 |
commit | 89e636c4b81463b902bd7768ab1f7f3cfb525bb1 (patch) | |
tree | db5cc15b7d2216af02a4e7f02728492bfd49f3ca /decoders/cec/pd.py | |
parent | 8a8b516aff4005faeea3df0f3ecb22527c10ae8d (diff) | |
download | libsigrokdecode-89e636c4b81463b902bd7768ab1f7f3cfb525bb1.tar.gz libsigrokdecode-89e636c4b81463b902bd7768ab1f7f3cfb525bb1.zip |
cec: Replace unneeded decode_opcode().
Diffstat (limited to 'decoders/cec/pd.py')
-rw-r--r-- | decoders/cec/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/cec/pd.py b/decoders/cec/pd.py index a742f81..4028b7e 100644 --- a/decoders/cec/pd.py +++ b/decoders/cec/pd.py @@ -136,7 +136,7 @@ class Decoder(srd.Decoder): (src, dst) = decode_header(self.cmd_bytes[i]['val']) str = 'HDR: ' + src + ', ' + dst elif i == 1: # Parse opcode - str += ' | OPC: ' + decode_opcode(self.cmd_bytes[i]['val']) + str += ' | OPC: ' + opcodes.get(self.cmd_bytes[i]['val'], 'Invalid') else: # Parse operands if operands == 0: str += ' | OPS: ' |