]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/onewire_network/pd.py
All PDs: Bump api_version to 2.
[libsigrokdecode.git] / decoders / onewire_network / pd.py
index 3064481281e7638363084ca06fe065d3c84ca345..23402a63ebae8dc86147b0f9a458cfebc8439478 100644 (file)
@@ -33,7 +33,7 @@ command = {
 }
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'onewire_network'
     name = '1-Wire network layer'
     longname = '1-Wire serial communication bus (network layer)'
@@ -41,9 +41,9 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['onewire_link']
     outputs = ['onewire_network']
-    annotations = [
-        ['text', 'Human-readable text'],
-    ]
+    annotations = (
+        ('text', 'Human-readable text'),
+    )
 
     def __init__(self, **kwargs):
         self.beg = 0