From: Uwe Hermann Date: Mon, 30 Dec 2019 15:55:30 +0000 (+0100) Subject: x2444m: Eliminate duplicate annotation class ID. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a0cbf8298d761a3615fe3c9c444b7517b437920f;p=libsigrokdecode.git x2444m: Eliminate duplicate annotation class ID. --- diff --git a/decoders/x2444m/pd.py b/decoders/x2444m/pd.py index 290cc36..57f1225 100644 --- a/decoders/x2444m/pd.py +++ b/decoders/x2444m/pd.py @@ -28,7 +28,8 @@ registers = { 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): @@ -49,7 +50,6 @@ class Decoder(srd.Decoder): ('wren', 'Write enable'), ('rcl', 'Recall EEPROM data into RAM'), ('read', 'Data read from RAM'), - ('read', 'Data read from RAM'), ) def __init__(self):