mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
In jtagmkII_read_byte() and jtagmkII_write_byte(), return an error
upon failure now that the upper layers won't fall back to the cmd() method anymore in that case. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@691 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
avrdude
@@ -1,3 +1,9 @@
|
||||
2006-11-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* jtagmkII.c: In jtagmkII_read_byte() and jtagmkII_write_byte(),
|
||||
return an error upon failure now that the upper layers won't fall
|
||||
back to the cmd() method anymore in that case.
|
||||
|
||||
2006-11-21 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
Implement debugWire programming support.
|
||||
|
@@ -1802,14 +1802,8 @@ static int jtagmkII_read_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
/*
|
||||
* XXX should return an error status here, but that would cause
|
||||
* the generic methods to retry the request using the SPI method,
|
||||
* which is complete nonsense for JTAG.
|
||||
*/
|
||||
*value = 42;
|
||||
free(resp);
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int jtagmkII_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||
@@ -1903,13 +1897,8 @@ static int jtagmkII_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
/*
|
||||
* XXX should return an error status here, but that would cause
|
||||
* the generic methods to retry the request using the SPI method,
|
||||
* which is complete nonsense for JTAG.
|
||||
*/
|
||||
free(resp);
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user