]> sigrok.org Git - libsigrokdecode.git/commitdiff
amulet_ascii: Minor consistency fix.
authorUwe Hermann <redacted>
Wed, 1 Jan 2020 13:29:21 +0000 (14:29 +0100)
committerUwe Hermann <redacted>
Wed, 1 Jan 2020 13:29:21 +0000 (14:29 +0100)
decoders/amulet_ascii/pd.py

index 54733ef35dcde7ec10498eca4f790dc1245c2c49..41fbcad6029121a4277e5a9dcab1a13bf1290df2 100644 (file)
@@ -53,7 +53,7 @@ class Decoder(srd.Decoder):
     annotation_rows = (
         ('bits', 'Bits', (L + 0,)),
         ('fields', 'Fields', (L + 1,)),
-        ('commands', 'Commands', tuple(range(len(cmds)))),
+        ('commands', 'Commands', tuple(range(L))),
         ('warnings', 'Warnings', (L + 2,)),
     )
     options = (