From: Gerhard Sittig Date: Sat, 13 Jan 2018 18:30:53 +0000 (+0100) Subject: microwire: introduce constructor and reset() method X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=67e516969266a6e50df241dff2f287325e06f82a;p=libsigrokdecode.git 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). --- 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)