From 49d3e6f83c68e62138621f94bf5e22c9d7717fca Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 30 Jan 2019 00:03:23 +0100 Subject: jtag_ejtag: Shorten a variable name. --- decoders/jtag_ejtag/pd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py index 94a3a1a..5727722 100644 --- a/decoders/jtag_ejtag/pd.py +++ b/decoders/jtag_ejtag/pd.py @@ -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): -- cgit v1.2.3-70-g09d2