forked from Archive/PX4-Autopilot
Fix error handling
This commit is contained in:
parent
0200d6a77c
commit
5862f4ffe6
|
@ -195,7 +195,7 @@ class uploader(object):
|
|||
def __recv(self, count=1):
|
||||
c = self.port.read(count)
|
||||
if len(c) < 1:
|
||||
raise RuntimeError("timeout waiting for data (%u bytes)", count)
|
||||
raise RuntimeError("timeout waiting for data (%u bytes)" % count)
|
||||
# print("recv " + binascii.hexlify(c))
|
||||
return c
|
||||
|
||||
|
|
Loading…
Reference in New Issue