usbasp.c: return error if communication with target isn't possible.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@729 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
f0ad4dc3aa
commit
7082eecf2a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue