diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-05 15:49:18 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-05 17:08:01 +0100 |
commit | 12fb8f6232ed39ed78382c79049fd061ba809cf4 (patch) | |
tree | 58209dddb789e973b40a48cf45f7ce5e0ee1d3bd /decoders | |
parent | dca19fbfdf0650dba693c0ac6213f6cdb748a8c3 (diff) | |
download | libsigrokdecode-12fb8f6232ed39ed78382c79049fd061ba809cf4.tar.gz libsigrokdecode-12fb8f6232ed39ed78382c79049fd061ba809cf4.zip |
spiflash: Don't use ambiguous annotation class names.
This is not technically a bug since (at least some) datasheets refer
to this command as "Chip erase", it just happens to have two different
command codes (0x60 and 0xc7).
In order to not confuse users with two annotation classes with the
same name, we'll call the second one "Chip erase 2" to match the
"CE2" short name.
This fixes bug #1482.
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/spiflash/lists.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/spiflash/lists.py b/decoders/spiflash/lists.py index 49993ad..c6e07bf 100644 --- a/decoders/spiflash/lists.py +++ b/decoders/spiflash/lists.py @@ -47,7 +47,7 @@ cmds = OrderedDict([ (0xb9, ('DP', 'Deep power down')), (0xbb, ('2READ', '2x I/O read')), # a.k.a. "Fast read dual I/O". (0xc1, ('EXSO', 'Exit secured OTP')), - (0xc7, ('CE2', 'Chip erase')), # Alternative command ID + (0xc7, ('CE2', 'Chip erase 2')), # Alternative command ID (0xd7, ('STATUS', 'Status register read')), (0xd8, ('BE', 'Block erase')), (0xef, ('REMS2', 'Read ID for 2x I/O mode')), |