diff options
author | Ryan Jarvis <ryan@shopboxretail.com> | 2019-01-19 00:05:07 -0800 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-01-30 00:08:39 +0100 |
commit | 16d2031b149ff67be83b5600bdf5ad561add312d (patch) | |
tree | 242478dfaba1fa4e1542cfa492e328e4f8ffa6d0 /decoders/jtag_ejtag | |
parent | f78b814d54b19233d5e3f7cfef3d30a7a5ac8d40 (diff) | |
download | libsigrokdecode-16d2031b149ff67be83b5600bdf5ad561add312d.tar.gz libsigrokdecode-16d2031b149ff67be83b5600bdf5ad561add312d.zip |
Rename values that shadow built-in keywords
Diffstat (limited to 'decoders/jtag_ejtag')
-rw-r--r-- | decoders/jtag_ejtag/pd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py index ceaa114..94a3a1a 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 = '0x{:02X}'.format(code) + hex_value = '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 + ')' + s_long = insn[0] + ': ' + insn[1] + ' (' + hex_value + ')' # Display it and select data register. self.put_current([Ann.INSTRUCTION, [s_long, s_short]]) else: - self.put_current([Ann.INSTRUCTION, [hex, 'IR TDI ({})'.format(hex)]]) + self.put_current([Ann.INSTRUCTION, [hex_value, 'IR TDI ({})'.format(hex_value)]]) self.select_reg(code) def handle_new_state(self, new_state): |