read file as byte and no tab before sleep
parent
2dc34096a0
commit
fe727706bd
|
@ -7,7 +7,7 @@ from Crypto.PublicKey import RSA
|
|||
|
||||
rsa = RSA.importKey(open(sys.argv[3]).read())
|
||||
|
||||
with open(sys.argv[1]) as f:
|
||||
with open(sys.argv[1], "rb") as f:
|
||||
dat = f.read()
|
||||
|
||||
print("signing", len(dat), "bytes")
|
||||
|
|
|
@ -479,7 +479,7 @@ class Panda(object):
|
|||
break
|
||||
except (usb1.USBErrorIO, usb1.USBErrorOverflow):
|
||||
print("CAN: BAD RECV, RETRYING")
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.1)
|
||||
return parse_can_buffer(dat)
|
||||
|
||||
def can_clear(self, bus):
|
||||
|
|
Loading…
Reference in New Issue