]> sigrok.org Git - libsigrokdecode.git/commitdiff
x2444m: Eliminate duplicate annotation class ID.
authorUwe Hermann <redacted>
Mon, 30 Dec 2019 15:55:30 +0000 (16:55 +0100)
committerUwe Hermann <redacted>
Tue, 31 Dec 2019 16:40:16 +0000 (17:40 +0100)
decoders/x2444m/pd.py

index 290cc368b8f5787e5177ba6ad3dda45bb9d3bc0d..57f12252d750c1d467a144a542c559b2ec85f6b2 100644 (file)
@@ -28,7 +28,8 @@ registers = {
     0x84: ['WREN',  4, lambda _: ''],
     0x85: ['RCL',   5, lambda _: ''],
     0x86: ['READ',  6, lambda v: '0x%x' % v],
     0x84: ['WREN',  4, lambda _: ''],
     0x85: ['RCL',   5, lambda _: ''],
     0x86: ['READ',  6, lambda v: '0x%x' % v],
-    0x87: ['READ',  7, lambda v: '0x%x' % v],
+    0x87: ['READ',  6, lambda v: '0x%x' % v],
+    # 0x86/0x87 are both valid READ commands (bit 0 is "don't care").
 }
 
 class Decoder(srd.Decoder):
 }
 
 class Decoder(srd.Decoder):
@@ -49,7 +50,6 @@ class Decoder(srd.Decoder):
         ('wren', 'Write enable'),
         ('rcl', 'Recall EEPROM data into RAM'),
         ('read', 'Data read from RAM'),
         ('wren', 'Write enable'),
         ('rcl', 'Recall EEPROM data into RAM'),
         ('read', 'Data read from RAM'),
-        ('read', 'Data read from RAM'),
     )
 
     def __init__(self):
     )
 
     def __init__(self):