diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-12-22 03:55:16 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-12-22 12:18:13 +0100 |
commit | ecb0b96d4a4d0021b41ffebec0df219338aa3724 (patch) | |
tree | ce565340aa8f467c193b626bff506f412c246548 /decoders/ssi32 | |
parent | 89256c6c76610756974d9f15d78288900e517b97 (diff) | |
download | libsigrokdecode-ecb0b96d4a4d0021b41ffebec0df219338aa3724.tar.gz libsigrokdecode-ecb0b96d4a4d0021b41ffebec0df219338aa3724.zip |
ssi32: rename reset() helper method
The ssi32 decoder implements a reset() method which clears internally
accumulated data during decoding. Rename the method before all decoders
will grow a new reset() method that will be used for a different purpose.
Diffstat (limited to 'decoders/ssi32')
-rw-r--r-- | decoders/ssi32/pd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/ssi32/pd.py b/decoders/ssi32/pd.py index a2fd859..dbcdf64 100644 --- a/decoders/ssi32/pd.py +++ b/decoders/ssi32/pd.py @@ -59,7 +59,7 @@ class Decoder(srd.Decoder): def putx(self, data): self.put(self.ss_cmd, self.es_cmd, self.out_ann, data) - def reset(self): + def reset_data(self): self.mosi_bytes = [] self.miso_bytes = [] self.es_array = [] @@ -93,7 +93,7 @@ class Decoder(srd.Decoder): def decode(self, ss, es, data): ptype = data[0] if ptype == 'CS-CHANGE': - self.reset() + self.reset_data() return # Don't care about anything else. @@ -114,10 +114,10 @@ class Decoder(srd.Decoder): return self.handle_ack() - self.reset() + self.reset_data() else: if len(self.mosi_bytes) < self.options['msgsize']: return self.handle_ctrl() - self.reset() + self.reset_data() |