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:
parent
fb0da1f3af
commit
10fcf3e111
|
@ -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>
|
2007-02-01 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
* config_gram.y: Remove duplicate definition of token K_WRITEPAGE
|
* config_gram.y: Remove duplicate definition of token K_WRITEPAGE
|
||||||
|
|
3
usbasp.c
3
usbasp.c
|
@ -205,8 +205,7 @@ static int usbasp_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
|
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
|
|
||||||
pgm->program_enable(pgm, p);
|
return pgm->program_enable(pgm, p);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usbasp_disable(PROGRAMMER * pgm)
|
static void usbasp_disable(PROGRAMMER * pgm)
|
||||||
|
|
Loading…
Reference in New Issue