]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/xfp/pd.py
Probes, optional probes and annotations now take a tuple.
[libsigrokdecode.git] / decoders / xfp / pd.py
index 63e8aec148f9958e7e87f0595fbaec147dd87785..975215ac6c7a7d5ba64dfd686c00bc9182db6223 100644 (file)
@@ -199,10 +199,10 @@ class Decoder(srd.Decoder):
     license = 'gplv3+'
     inputs = ['i2c']
     outputs = ['xfp']
-    annotations = [
-        ['fieldnames-and-values', 'XFP structure field names and values'],
-        ['fields', 'XFP structure fields'],
-    ]
+    annotations = (
+        ('fieldnames-and-values', 'XFP structure field names and values'),
+        ('fields', 'XFP structure fields'),
+    )
 
     def __init__(self, **kwargs):
         # Received data items, used as an index into samplenum/data