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.
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 = []
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.
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()