diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-11-10 18:31:38 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-11-10 18:31:38 +0100 |
commit | e7a4360d9ceddc295302baf42fe607fd366de93f (patch) | |
tree | 311e3b2255c3e54d7816f892645fc78c742d3979 | |
parent | 15a60d37d4ea14c460068ce4c0e6befdb918692f (diff) | |
download | libsigrokdecode-e7a4360d9ceddc295302baf42fe607fd366de93f.tar.gz libsigrokdecode-e7a4360d9ceddc295302baf42fe607fd366de93f.zip |
x2444m: Move variable initializations to reset().
-rw-r--r-- | decoders/x2444m/pd.py | 7 |
1 files 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)]]) |