1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

.write() takes int value

This commit is contained in:
Ross Wilson
2016-04-23 11:00:41 +07:00
parent 056ce23280
commit f9e35be8f4

View File

@@ -46,7 +46,7 @@ class TtyOut(object):
self.state = DEVICE_NOT_READY
def write(self, char):
log('TTYOUT: writing byte %03o, .open_file=%s' % (char, self.open_file))
log('TTYOUT: writing byte %03o, .open_file=%s' % (char, str(self.open_file)))
if self.open_file:
self.open_file.write(chr(char))
self.state = DEVICE_NOT_READY