Skip to content

Commit

Permalink
read file as byte and no tab before sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Sep 25, 2019
1 parent 2dc3409 commit fe72770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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")
Expand Down
2 changes: 1 addition & 1 deletion python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def can_recv(self):
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):
Expand Down

0 comments on commit fe72770

Please sign in to comment.