]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/rfm12/pd.py
all decoders: introduce a reset() method
[libsigrokdecode.git] / decoders / rfm12 / pd.py
index 3148a5748cfaa97fe46dba203c2d613d134d35de..e709696c9ef7fbbc28fc3c86cd2b17126875cd7d 100644 (file)
@@ -43,6 +43,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.mosi_bytes, self.miso_bytes = [], []
         self.mosi_bits, self.miso_bits = [], []
         self.row_pos = [0, 0, 0]
         self.mosi_bytes, self.miso_bytes = [], []
         self.mosi_bits, self.miso_bits = [], []
         self.row_pos = [0, 0, 0]