From 67e516969266a6e50df241dff2f287325e06f82a Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 13 Jan 2018 19:30:53 +0100 Subject: 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). --- decoders/microwire/pd.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'decoders/microwire') 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) -- cgit v1.2.3-70-g09d2