diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-06-21 22:09:55 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-06-22 12:10:52 +0200 |
commit | 068960b63ae6eca1392561fde5efac09e846251c (patch) | |
tree | c7e06a03f9dfd941c230b8c2232ac047649f19be /decoders | |
parent | b518a2fd73c8b22d3fbb5032ece1e1303df016b1 (diff) | |
download | libsigrokdecode-068960b63ae6eca1392561fde5efac09e846251c.tar.gz libsigrokdecode-068960b63ae6eca1392561fde5efac09e846251c.zip |
jtag_ejtag: Fix short/long annotation order.
The list of annotation strings is sorted from longest to shortest.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/jtag_ejtag/pd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py index 9dc4438..80888ed 100644 --- a/decoders/jtag_ejtag/pd.py +++ b/decoders/jtag_ejtag/pd.py @@ -292,7 +292,7 @@ class Decoder(srd.Decoder): short_desc = comment + ': ' + value_str long_desc = value_descriptions[value_index] if len(value_descriptions) > value_index else '?' - display_data = [ann, [short_desc, long_desc]] + display_data = [ann, [long_desc, short_desc]] self.put_at(ss, es, display_data) @@ -366,7 +366,7 @@ class Decoder(srd.Decoder): s_short = insn[0] s_long = insn[0] + ': ' + insn[1] + ' (' + hex + ')' # Display it and select data register. - self.put_current([Ann.INSTRUCTION, [s_short, s_long]]) + self.put_current([Ann.INSTRUCTION, [s_long, s_short]]) else: self.put_current([Ann.INSTRUCTION, [hex, 'IR TDI ({})'.format(hex)]]) self.select_reg(code) |