This commit is contained in:
Michael Fogleman 2018-03-15 10:23:27 -04:00
parent fe7cbed22f
commit 04ed644424
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class Device(object):
def command(self, *args): def command(self, *args):
line = ','.join(map(str, args)) line = ','.join(map(str, args))
self.serial.write(line + '\r') self.serial.write((line + '\r').encode('utf-8'))
return self.readline() return self.readline()
# higher level functions # higher level functions