mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-17 02:54:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user