mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 18:21:07 +00:00
Tentative fix for bug #16156: Problem with Si-Prog
Disable reset before closing. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@633 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -241,7 +241,12 @@ static int serbb_open(PROGRAMMER *pgm, char *port)
|
||||
|
||||
static void serbb_close(PROGRAMMER *pgm)
|
||||
{
|
||||
tcsetattr(pgm->fd, TCSANOW, &oldmode);
|
||||
if (pgm->fd != -1)
|
||||
{
|
||||
tcsetattr(pgm->fd, TCSANOW, &oldmode);
|
||||
pgm->setpin(pgm, pgm->pinno[PIN_AVR_RESET], 1);
|
||||
close(pgm->fd);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user