usbasp.c: return error if communication with target isn't possible.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@729 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Thomas Fischl 2007-02-02 16:27:49 +00:00
parent fb0da1f3af
commit 10fcf3e111
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-02-02 Thomas Fischl <tfischl@gmx.de>
* usbasp.c: Changed return value of function usbasp_initialize to stop
avrdude on communication errors between programmer and target.
Closes bug #18581: safemode destroys fuse bits
2007-02-01 Joerg Wunsch <j@uriah.heep.sax.de>
* config_gram.y: Remove duplicate definition of token K_WRITEPAGE

View File

@ -205,8 +205,7 @@ static int usbasp_initialize(PROGRAMMER * pgm, AVRPART * p)
usleep(100000);
pgm->program_enable(pgm, p);
return 0;
return pgm->program_enable(pgm, p);
}
static void usbasp_disable(PROGRAMMER * pgm)