From 18cf1cf47f844238764d049ae779f2e9d3034f1c Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 15 Dec 2006 15:42:44 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ jtagmkI.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53d286a5..3e7587db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-15 Joerg Wunsch + + 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 * jtagmkII.c (jtagmkII_paged_write): Remove a debugging diff --git a/jtagmkI.c b/jtagmkI.c index ef8ed02b..259ce1bc 100644 --- a/jtagmkI.c +++ b/jtagmkI.c @@ -1110,7 +1110,7 @@ static int jtagmkI_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem, return -1; } - cmd[2] = 1; + cmd[2] = 1 - 1; if (cmd[1] == MTYPE_SPM) { /* * Flash is word-addressed, but we cannot handle flash anyway