diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-01-28 22:59:59 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-03-31 20:44:17 +0200 |
commit | 34f18d2f444e999644ad1244b8ff140e07d4b5a1 (patch) | |
tree | c92f76febcef44dfc92ea7f845b3bfb929e2bf4d /decoders | |
parent | 67e516969266a6e50df241dff2f287325e06f82a (diff) | |
download | libsigrokdecode-34f18d2f444e999644ad1244b8ff140e07d4b5a1.tar.gz libsigrokdecode-34f18d2f444e999644ad1244b8ff140e07d4b5a1.zip |
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).
Diffstat (limited to 'decoders')
-rw-r--r-- | decoders/max7219/pd.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 |