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/avrdude@691 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
134947dc7f
commit
4bbd40415d
|
@ -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.
|
||||
|
|
15
jtagmkII.c
15
jtagmkII.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue