aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2015-04-04 16:09:10 +0530
committerSudar <sudar@sudarmuthu.com>2015-04-04 16:09:10 +0530
commitc4089c02b05b470364f90b270bbc9ecd491f1fb8 (patch)
tree667b230657864ffc0e9656af44d284ebcb442d08 /bin
parent3dce457c6df6bc7b3c3ae9d357d7f3b802a297a0 (diff)
parentbc2a9a9798879694f6575c0d003cc7867a3d9e66 (diff)
Merge branch 'calvinli-patch-1'
Fix #340
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ard-reset-arduino4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ard-reset-arduino b/bin/ard-reset-arduino
index ed22a63..3e43486 100755
--- a/bin/ard-reset-arduino
+++ b/bin/ard-reset-arduino
@@ -17,10 +17,10 @@ if args.caterina:
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
ser = serial.Serial(args.port[0], 57600)
ser.close()
- ser.open()
- ser.close()
ser.setBaudrate(1200)
ser.open()
+ ser.setRTS(True) # RTS line needs to be held high and DTR low
+ ser.setDTR(False) # (see Arduino IDE source code)
ser.close()
sleep(1)