summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2018-10-21 21:25:34 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2018-10-21 21:26:09 +0200
commitd1de22c0b9ef3158f41fab1b8190cd5d5f79771b (patch)
tree1dcfd94744108e49b27da8bac61b3e20f25a6ac6
parent546733a262c826ee5bc9ee74eaec330d2e3c088b (diff)
downloadlibsigrokdecode-d1de22c0b9ef3158f41fab1b8190cd5d5f79771b.tar.gz
libsigrokdecode-d1de22c0b9ef3158f41fab1b8190cd5d5f79771b.zip
miller: add reset() method
-rw-r--r--decoders/miller/pd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/miller/pd.py b/decoders/miller/pd.py
index 0ab5c4a..9a4032e 100644
--- a/decoders/miller/pd.py
+++ b/decoders/miller/pd.py
@@ -56,6 +56,9 @@ class Decoder(srd.Decoder):
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.samplerate = None
def metadata(self, key, value):