summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2018-01-28 22:59:59 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2018-03-31 20:44:17 +0200
commit34f18d2f444e999644ad1244b8ff140e07d4b5a1 (patch)
treec92f76febcef44dfc92ea7f845b3bfb929e2bf4d /decoders
parent67e516969266a6e50df241dff2f287325e06f82a (diff)
downloadlibsigrokdecode-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.py6
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