miller: add reset() method
authorGerhard Sittig <gerhard.sittig@gmx.net>
Sun, 21 Oct 2018 19:25:34 +0000 (21:25 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Sun, 21 Oct 2018 19:26:09 +0000 (21:26 +0200)
decoders/miller/pd.py

index 0ab5c4aae23fb324d84bb22a4279e324118f09a6..9a4032ed405152cf7a45fc598aac223d7a0fa4bf 100644 (file)
@@ -56,6 +56,9 @@ class Decoder(srd.Decoder):
     )
 
     def __init__(self):
+        self.reset()
+
+    def reset(self):
         self.samplerate = None
 
     def metadata(self, key, value):