From 34f18d2f444e999644ad1244b8ff140e07d4b5a1 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 28 Jan 2018 22:59:59 +0100 Subject: [PATCH] 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). --- decoders/max7219/pd.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2