Reported by Jason Kotzin:
* usbasp.c (usbasp_spi_paged_load, usbasp_spi_paged_write): Fix buffer address calculation. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1034 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
965f879ab6
commit
0b3feb71b8
|
@ -1,3 +1,9 @@
|
||||||
|
2012-01-03 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
Reported by Jason Kotzin:
|
||||||
|
* usbasp.c (usbasp_spi_paged_load, usbasp_spi_paged_write):
|
||||||
|
Fix buffer address calculation.
|
||||||
|
|
||||||
2012-01-03 Rene Liebscher <R.Liebscher@gmx.de>
|
2012-01-03 Rene Liebscher <R.Liebscher@gmx.de>
|
||||||
|
|
||||||
patch #7629 add support for atmega48p
|
patch #7629 add support for atmega48p
|
||||||
|
|
4
usbasp.c
4
usbasp.c
|
@ -612,7 +612,7 @@ static int usbasp_spi_paged_load(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
||||||
unsigned char cmd[4];
|
unsigned char cmd[4];
|
||||||
int wbytes = n_bytes;
|
int wbytes = n_bytes;
|
||||||
int blocksize;
|
int blocksize;
|
||||||
unsigned char * buffer = m->buf;
|
unsigned char *buffer = m->buf + address;
|
||||||
int function;
|
int function;
|
||||||
|
|
||||||
if (strcmp(m->desc, "flash") == 0) {
|
if (strcmp(m->desc, "flash") == 0) {
|
||||||
|
@ -676,7 +676,7 @@ static int usbasp_spi_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
||||||
unsigned char cmd[4];
|
unsigned char cmd[4];
|
||||||
int wbytes = n_bytes;
|
int wbytes = n_bytes;
|
||||||
int blocksize;
|
int blocksize;
|
||||||
unsigned char * buffer = m->buf;
|
unsigned char *buffer = m->buf + address;
|
||||||
unsigned char blockflags = USBASP_BLOCKFLAG_FIRST;
|
unsigned char blockflags = USBASP_BLOCKFLAG_FIRST;
|
||||||
int function;
|
int function;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue