Skip to content

Commit

Permalink
refine the console message & remove .exe file
Browse files Browse the repository at this point in the history
  • Loading branch information
shihhsuan committed Jan 20, 2017
1 parent 2789d39 commit 94e0162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file removed upload.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def resetIntoBootloader():
s.setRTS(True)
s.setDTR(False)
time.sleep(0.1)

s.setDTR(True)
s.setRTS(False)
time.sleep(0.1)
Expand Down Expand Up @@ -171,7 +171,7 @@ def pgupdate(read, total):
m = xmodem.XMODEM(getc, putc_user, mode='xmodem1k')
m.send(stream)

print >> sys.stderr, "Bin file uploaded. The board reboots now."
print >> sys.stderr, "\nBin file uploaded. The board reboots now."
time.sleep(1)
s.write("C\r")
s.flush()
Expand Down

0 comments on commit 94e0162

Please sign in to comment.