bug #28458: Buffer line is incorrectly released for PP programmers

* par.c (par_close): use par_setmany() rather than par_setpin()
for PPI_AVR_BUFF.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@888 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2010-01-07 16:23:28 +00:00
parent ee8a473945
commit 6363da9c45
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-01-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #28458: Buffer line is incorrectly released for PP programmers
* par.c (par_close): use par_setmany() rather than par_setpin()
for PPI_AVR_BUFF.
2010-01-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2010-01-07 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #27507: SIGSEGV when using avrdragon (avrdude 5.8) bug #27507: SIGSEGV when using avrdragon (avrdude 5.8)

2
par.c
View File

@ -285,7 +285,7 @@ static void par_close(PROGRAMMER * pgm)
ppi_setall(&pgm->fd, PPIDATA, pgm->ppidata); ppi_setall(&pgm->fd, PPIDATA, pgm->ppidata);
ppi_setall(&pgm->fd, PPICTRL, pgm->ppictrl); ppi_setall(&pgm->fd, PPICTRL, pgm->ppictrl);
par_setpin(pgm, pgm->pinno[PPI_AVR_BUFF], 1); par_setmany(pgm, pgm->pinno[PPI_AVR_BUFF], 1);
/* /*
* Handle exit specs. * Handle exit specs.