('warnings', 'Warnings', (2,)),
)
- def reset(self):
+ def reset_data(self):
self.expected = 0
self.mosi_bytes, self.miso_bytes = [], []
def __init__(self):
self.ss_cmd, self.es_cmd = 0, 0
- self.reset()
+ self.reset_data()
def start(self):
self.out_ann = self.register(srd.OUTPUT_ANN)
idx = 1 if write else 0
self.putx([idx, ['%s: %s' % (rblob[0], "SHORT")]])
self.put_warn([self.ss_cmd, es], "Short transfer!")
- self.reset()
+ self.reset_data()
return
# Don't care about anything else.
else:
self.putx([0, ['%s: %#x' % (rblob[0], vali)]])
- self.reset()
+ self.reset_data()