* arduino.c: Add on to bug #26703 / patch #6866 - clear DTR/RTS

when closing the port.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@874 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
mludvig 2009-11-02 23:52:52 +00:00
parent e984f82979
commit 1b4ba95e3c
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-11-03 Michal Ludvig <mludvig@logix.net.nz>
* arduino.c: Add on to bug #26703 / patch #6866 - clear DTR/RTS
when closing the port.
2009-10-22 David Hoerl <dhoerl@mac.com>
* usb_libusb.c: disabled usb_reset for Macs (same as FreeBSD)

View File

@ -107,6 +107,12 @@ static int arduino_open(PROGRAMMER * pgm, char * port)
return 0;
}
static void arduino_close(PROGRAMMER * pgm)
{
serial_set_dtr_rts(&pgm->fd, 0);
serial_close(&pgm->fd);
pgm->fd.ifd = -1;
}
void arduino_initpgm(PROGRAMMER * pgm)
{
@ -119,4 +125,5 @@ void arduino_initpgm(PROGRAMMER * pgm)
strcpy(pgm->type, "Arduino");
pgm->read_sig_bytes = arduino_read_sig_bytes;
pgm->open = arduino_open;
pgm->close = arduino_close;
}