bug #22882: Erase Cycle Counter does not work for stk500v2

* stk500v2.c (stk500v2_chip_erase,stk500hv_chip_erase): Return
the expected 0 for success rather than a protocol-dependant
number.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@785 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2008-11-04 13:15:21 +00:00
parent f561766001
commit 5813809496
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-11-04 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #22882: Erase Cycle Counter does not work for stk500v2
* stk500v2.c (stk500v2_chip_erase,stk500hv_chip_erase): Return
the expected 0 for success rather than a protocol-dependant
number.
2008-11-04 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #22883: Chip Erase performed even with no-write flag (-n)

View File

@ -753,7 +753,7 @@ static int stk500v2_chip_erase(PROGRAMMER * pgm, AVRPART * p)
pgm->pgm_led(pgm, OFF);
return result;
return result >= 0? 0: -1;
}
/*
@ -781,7 +781,7 @@ static int stk500hv_chip_erase(PROGRAMMER * pgm, AVRPART * p, enum hvmode mode)
pgm->pgm_led(pgm, OFF);
return result;
return result >= 0? 0: -1;
}
/*