From: Uwe Hermann Date: Sat, 10 Nov 2018 17:31:38 +0000 (+0100) Subject: x2444m: Move variable initializations to reset(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e7a4360d9ceddc295302baf42fe607fd366de93f;p=libsigrokdecode.git x2444m: Move variable initializations to reset(). --- 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)]])