From e7a4360d9ceddc295302baf42fe607fd366de93f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 10 Nov 2018 18:31:38 +0100 Subject: x2444m: Move variable initializations to reset(). --- decoders/x2444m/pd.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/decoders/x2444m/pd.py b/decoders/x2444m/pd.py index a6534ee..751e6d3 100644 --- a/decoders/x2444m/pd.py +++ b/decoders/x2444m/pd.py @@ -55,14 +55,13 @@ class Decoder(srd.Decoder): self.reset() def reset(self): - pass - - def start(self): - self.out_ann = self.register(srd.OUTPUT_ANN) self.cs_start = 0 self.cs_asserted = False self.cmd_digit = 0 + def start(self): + self.out_ann = self.register(srd.OUTPUT_ANN) + def putreadwrite(self, ss, es, reg, idx, addr, value): self.put(ss, es, self.out_ann, [idx, ['%s: %s => 0x%4.4x' % (reg, addr, value)]]) -- cgit v1.2.3-70-g09d2