Submitted by ivanv at netman.ru

Fix length for single-byte write operations.
Closes bug #18527 JTAG ICE: fuse bits have been writen incorrectly


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@703 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch 2006-12-15 15:42:44 +00:00
parent 4652c6428a
commit 97e45d71bb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-12-15 Joerg Wunsch <j@uriah.heep.sax.de>
Submitted by ivanv at netman.ru
* jtagmkI.c: fix length for single-byte write operations.
Closes bug #18527 JTAG ICE: fuse bits have been writen incorrectly
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de> 2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
* jtagmkII.c (jtagmkII_paged_write): Remove a debugging * jtagmkII.c (jtagmkII_paged_write): Remove a debugging

View File

@ -1110,7 +1110,7 @@ static int jtagmkI_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
return -1; return -1;
} }
cmd[2] = 1; cmd[2] = 1 - 1;
if (cmd[1] == MTYPE_SPM) { if (cmd[1] == MTYPE_SPM) {
/* /*
* Flash is word-addressed, but we cannot handle flash anyway * Flash is word-addressed, but we cannot handle flash anyway