cec: Replace unneeded decode_opcode().
[libsigrokdecode.git] / decoders / cec / pd.py
index a742f81b326be761a266260373fdfdbb3d5ba98d..4028b7e2af8fbd4c95cf9f537df0708e6e78b0fa 100644 (file)
@@ -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: '