1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

Added debug printing

This commit is contained in:
slush0 2014-02-20 16:01:17 +01:00
parent b6a280c380
commit 6e90d5763e

View File

@ -63,10 +63,12 @@ class BaseClient(object):
def call_raw(self, msg): def call_raw(self, msg):
try: try:
print "SENDING", pprint(msg)
self.transport.session_begin() self.transport.session_begin()
self.transport.write(msg) self.transport.write(msg)
resp = self.transport.read_blocking() resp = self.transport.read_blocking()
print "RECEIVED", pprint(resp)
finally: finally:
self.transport.session_end() self.transport.session_end()