From: Gerhard Sittig Date: Sun, 28 Jan 2018 21:59:59 +0000 (+0100) Subject: max7219: introduce constructor and reset() method X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=34f18d2f444e999644ad1244b8ff140e07d4b5a1;p=libsigrokdecode.git max7219: introduce constructor and reset() method The "max7219" 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/max7219/pd.py b/decoders/max7219/pd.py index 76b9b1c..c8e99e1 100644 --- a/decoders/max7219/pd.py +++ b/decoders/max7219/pd.py @@ -59,6 +59,12 @@ class Decoder(srd.Decoder): ('warnings', 'Warnings', (ann_warning,)), ) + def __init__(self): + self.reset() + + def reset(self): + pass + def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) self.pos = 0