Workaround python 2.7.3 struct module bug when handling bytes()
parent
366538f58c
commit
ab58fe48ea
|
@ -50,7 +50,7 @@ class eSSP(object):
|
|||
|
||||
def send_unpack(self, format_string, command, args=[], parse_status=True):
|
||||
resp = self.send(command, args, parse_status)
|
||||
return struct.unpack(format_string, resp)
|
||||
return struct.unpack(format_string, str(resp)) # py 2.7.3 struct workaround
|
||||
|
||||
def read(self, parse_status=True):
|
||||
''' Reads, parses and checks a single message from serial.
|
||||
|
|
Loading…
Reference in New Issue