aboutsummaryrefslogtreecommitdiff
path: root/bin/ard-reset-arduino
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ard-reset-arduino')
-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)