py3
This commit is contained in:
parent
fe7cbed22f
commit
04ed644424
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue