summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2018-01-13 19:30:53 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2018-03-31 20:44:10 +0200
commit67e516969266a6e50df241dff2f287325e06f82a (patch)
tree95f040b3fdf3311e8b89d23b8b7a75a5be233163 /decoders
parent3481b5f753a103eaa2f0bbff90981bb79b3c5e88 (diff)
downloadlibsigrokdecode-67e516969266a6e50df241dff2f287325e06f82a.tar.gz
libsigrokdecode-67e516969266a6e50df241dff2f287325e06f82a.zip
microwire: introduce constructor and reset() method
The "microwire" decoder used to have no constructor, which made me miss it when reset() got introduced. Implement those two methods (which do nothing, and thus won't change behaviour).
Diffstat (limited to 'decoders')
-rw-r--r--decoders/microwire/pd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/decoders/microwire/pd.py b/decoders/microwire/pd.py
index 4ec6eb0..4180ba2 100644
--- a/decoders/microwire/pd.py
+++ b/decoders/microwire/pd.py
@@ -71,6 +71,12 @@ class Decoder(srd.Decoder):
('warnings', 'Warnings', (5,)),
)
+ def __init__(self):
+ self.reset()
+
+ def reset(self):
+ pass
+
def start(self):
self.out_python = self.register(srd.OUTPUT_PYTHON)
self.out_ann = self.register(srd.OUTPUT_ANN)