read file as byte and no tab before sleep

master
Riccardo 2019-09-25 14:34:28 -07:00
parent 2dc34096a0
commit fe727706bd
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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):