mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
bug #22883: Chip Erase performed even with no-write flag (-n)
Do not erase the chip if both, -e and -n options have been specified. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@784 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
12
main.c
12
main.c
@@ -1037,10 +1037,16 @@ int main(int argc, char * argv [])
|
||||
* erase the chip's flash and eeprom memories, this is required
|
||||
* before the chip can accept new programming
|
||||
*/
|
||||
if (quell_progress < 2) {
|
||||
fprintf(stderr, "%s: erasing chip\n", progname);
|
||||
if (nowrite) {
|
||||
fprintf(stderr,
|
||||
"%s: conflicting -e and -n options specified, NOT erasing chip\n",
|
||||
progname);
|
||||
} else {
|
||||
if (quell_progress < 2) {
|
||||
fprintf(stderr, "%s: erasing chip\n", progname);
|
||||
}
|
||||
avr_chip_erase(pgm, p);
|
||||
}
|
||||
avr_chip_erase(pgm, p);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user