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:
Joerg Wunsch 2006-11-21 16:13:08 +00:00
parent 04203ce892
commit 0e054fac95
2 changed files with 8 additions and 13 deletions

View File

@ -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.

View File

@ -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;
}