From 13184383f9664a60e2c6ac3ac165ce8d2dc12730 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 10 Jan 2012 07:22:20 +0000 Subject: [PATCH] Submitted by Bob Frazier: bug #35208: avrdude 5.11 on freebsd 8.2-STABLE does not reset Arduino Uno properly * arduino.c (arduino_open): Bump the timeout between pulling the DTR and RTS lines low and high. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@1036 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 8 ++++++++ avrdude/arduino.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index 649f93b5..4e2418ac 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,11 @@ +2012-01-10 Joerg Wunsch + + Submitted by Bob Frazier: + bug #35208: avrdude 5.11 on freebsd 8.2-STABLE does not reset + Arduino Uno properly + * arduino.c (arduino_open): Bump the timeout between pulling + the DTR and RTS lines low and high. + 2012-01-08 Rene Liebscher Fixed following findings reported by cppcheck diff --git a/avrdude/arduino.c b/avrdude/arduino.c index 123e83e8..6ab8a4b2 100644 --- a/avrdude/arduino.c +++ b/avrdude/arduino.c @@ -93,7 +93,7 @@ static int arduino_open(PROGRAMMER * pgm, char * port) /* Clear DTR and RTS to unload the RESET capacitor * (for example in Arduino) */ serial_set_dtr_rts(&pgm->fd, 0); - usleep(50*1000); + usleep(250*1000); /* Set DTR and RTS back to high */ serial_set_dtr_rts(&pgm->fd, 1); usleep(50*1000);