Skip to content

Commit c4089c0

Browse files
committed
Merge branch 'calvinli-patch-1'
Fix #340
2 parents 3dce457 + bc2a9a9 commit c4089c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
5353
- Fix: Can now find IDE 1.5+ preferences.txt on Linux and Mac (https://github.com/sej7278)
5454
- Fix: Added support for VARIANT being a submenu item in 1.6 cores like attiny (https://github.com/sej7278)
5555
- Fix: Replaced copyright symbol causing sed problems on OSX (Issue #335). (https://github.com/sej7278)
56+
- Fix: Fix issues with resetting Leonardo and Micro boards(Issue #340) (https://github.com/calvinli)
5657

5758
### 1.3.4 (2014-07-12)
5859
- Tweak: Allow spaces in "Serial.begin (....)". (Issue #190) (https://github.com/pdav)

bin/ard-reset-arduino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ if args.caterina:
1717
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
1818
ser = serial.Serial(args.port[0], 57600)
1919
ser.close()
20-
ser.open()
21-
ser.close()
2220
ser.setBaudrate(1200)
2321
ser.open()
22+
ser.setRTS(True) # RTS line needs to be held high and DTR low
23+
ser.setDTR(False) # (see Arduino IDE source code)
2424
ser.close()
2525
sleep(1)
2626

0 commit comments

Comments
 (0)