]> sigrok.org Git - libsigrokdecode.git/commitdiff
x2444m: Move variable initializations to reset().
authorUwe Hermann <redacted>
Sat, 10 Nov 2018 17:31:38 +0000 (18:31 +0100)
committerUwe Hermann <redacted>
Sat, 10 Nov 2018 17:31:38 +0000 (18:31 +0100)
decoders/x2444m/pd.py

index a6534eeb661aeb63b02dc1203bf3b2cd620ed46a..751e6d36feb4f5a7ba994379e6a13d0ba00a3fdf 100644 (file)
@@ -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)]])