]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/eeprom93xx/pd.py
decoders: Fix incorrect 'outputs' fields.
[libsigrokdecode.git] / decoders / eeprom93xx / pd.py
index 5ae789f3f5c1fa103046eacfbbb21eb80d78f764..7b64e59ada7e2a9754b13dc5b7a73b92cbc965fe 100644 (file)
 import sigrokdecode as srd
 
 class Decoder(srd.Decoder):
-    api_version = 2
+    api_version = 3
     id = 'eeprom93xx'
     name = '93xx EEPROM'
     longname = '93xx Microwire EEPROM'
     desc = '93xx series Microwire EEPROM protocol.'
     license = 'gplv2+'
     inputs = ['microwire']
-    outputs = ['eeprom93xx']
+    outputs = []
+    tags = ['IC', 'Memory']
     options = (
         {'id': 'addresssize', 'desc': 'Address size', 'default': 8},
         {'id': 'wordsize', 'desc': 'Word size', 'default': 16},
@@ -43,6 +44,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.frame = []
 
     def start(self):