]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/z80/pd.py
Use consistent __init__() format across all PDs.
[libsigrokdecode.git] / decoders / z80 / pd.py
index 299a20ec72496cc8ee27eb7b965ab0d85ff8d72d..a8acf53c3aab2e327d544a7c4a765d7504db1afb 100644 (file)
@@ -64,7 +64,7 @@ def signed_byte(byte):
     return byte if byte < 128 else byte - 256
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id       = 'z80'
     name     = 'Z80'
     longname = 'Zilog Z80 CPU'
@@ -110,7 +110,7 @@ class Decoder(srd.Decoder):
         ('warnings', 'Warnings', (Ann.WARN,))
     )
 
-    def __init__(self, **kwargs):
+    def __init__(self):
         self.prev_cycle = Cycle.NONE
         self.op_state   = self.state_IDLE