diff --git a/apps/python/zcash_fpga.py b/apps/python/zcash_fpga.py index 937fe4d..322527a 100644 --- a/apps/python/zcash_fpga.py +++ b/apps/python/zcash_fpga.py @@ -40,15 +40,19 @@ class zcash_fpga: def reset_fpga(self): self.s.write(self.codecs.decode('0800000000000000', 'hex')) # Parse reply - should be reset - res = self.get_reply() + res = self.get_reply()[0] if (self.struct.unpack(' 0: - self.print_reply(res) - return res + print(res) + msg_list = self.parse_reply(self, res) + print(msg_list) + if len(msg_list) > 0: + for msg in msg_list: + self.print_reply(msg) + return msg_list else: print ("INFO: No reply received") return None @@ -65,7 +69,7 @@ class zcash_fpga: cmd = "".join(reversed([cmd[i:i+2] for i in range(0, len(cmd), 2)])) self.s.write(self.codecs.decode(cmd, 'hex')) - res = self.get_reply() + res = self.get_reply()[0] # Just look at the first reply if res is not None and (self.struct.unpack('