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:
parent
fd71b3e437
commit
3a4ec709ff
|
@ -1,3 +1,9 @@
|
|||
2006-08-31 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
Tentative fix for bug #16156: Problem with Si-Prog
|
||||
* serbb_posix.c: Disable reset before closing.
|
||||
* serbb_win32.c: (Ditto.)
|
||||
|
||||
2006-08-30 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
Rewrite the serbb code so the pin numbering matches the
|
||||
|
|
|
@ -241,7 +241,12 @@ static int serbb_open(PROGRAMMER *pgm, char *port)
|
|||
|
||||
static void serbb_close(PROGRAMMER *pgm)
|
||||
{
|
||||
if (pgm->fd != -1)
|
||||
{
|
||||
tcsetattr(pgm->fd, TCSANOW, &oldmode);
|
||||
pgm->setpin(pgm, pgm->pinno[PIN_AVR_RESET], 1);
|
||||
close(pgm->fd);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -334,7 +334,10 @@ static void serbb_close(PROGRAMMER *pgm)
|
|||
{
|
||||
HANDLE hComPort=(HANDLE)pgm->fd;
|
||||
if (hComPort != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
pgm->setpin(pgm, pgm->pinno[PIN_AVR_RESET], 1);
|
||||
CloseHandle (hComPort);
|
||||
}
|
||||
if (verbose > 2)
|
||||
fprintf(stderr,
|
||||
"%s: ser_close(): closed comm port handle 0x%x\n",
|
||||
|
|
Loading…
Reference in New Issue