]> sigrok.org Git - libsigrokdecode.git/commitdiff
jtag_ejtag: Shorten a variable name.
authorUwe Hermann <redacted>
Tue, 29 Jan 2019 23:03:23 +0000 (00:03 +0100)
committerUwe Hermann <redacted>
Tue, 29 Jan 2019 23:08:39 +0000 (00:08 +0100)
decoders/jtag_ejtag/pd.py

index 94a3a1ab2f4c94fcee483d3122baf1e8620bde52..5727722f36123259d21dbb3f69ba851225e0b117 100644 (file)
@@ -357,16 +357,16 @@ class Decoder(srd.Decoder):
 
     def handle_ir_tdi(self, val):
         code = bin2int(val[0])
-        hex_value = '0x{:02X}'.format(code)
+        hexval = '0x{:02X}'.format(code)
         if code in ejtag_insn:
             # Format instruction name.
             insn = ejtag_insn[code]
             s_short = insn[0]
-            s_long = insn[0] + ': ' + insn[1] + ' (' + hex_value + ')'
+            s_long = insn[0] + ': ' + insn[1] + ' (' + hexval + ')'
             # Display it and select data register.
             self.put_current([Ann.INSTRUCTION, [s_long, s_short]])
         else:
-            self.put_current([Ann.INSTRUCTION, [hex_value, 'IR TDI ({})'.format(hex_value)]])
+            self.put_current([Ann.INSTRUCTION, [hexval, 'IR TDI ({})'.format(hexval)]])
         self.select_reg(code)
 
     def handle_new_state(self, new_state):