mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 17:46:33 +03:00
Remove note on what CE might erase
This commit is contained in:
12
src/term.c
12
src/term.c
@@ -964,16 +964,8 @@ static int cmd_erase(const PROGRAMMER *pgm, const AVRPART *p, int argc, const ch
|
||||
return cmd_write(pgm, p, 6, args);
|
||||
}
|
||||
|
||||
const char *note = "";
|
||||
if(!(pgm->prog_modes & PM_SPM) && avr_locate_eeprom(p)) { // Not a bootloader: is EEPROM saved?
|
||||
int eesave, bakverb = verbose;
|
||||
verbose = -123; // Silently read EESAVE configuration bit
|
||||
if(avr_get_config_value(pgm, p, "eesave", &eesave) == 0)
|
||||
note = eesave == !(p->prog_modes & PM_UPDI)? "(including EEPROM) ": "(but not EEPROM) ";
|
||||
verbose = bakverb;
|
||||
}
|
||||
|
||||
term_out("erasing chip %s...\n", note);
|
||||
term_out("%s chip erase ...\n", (pgm->prog_modes & PM_SPM)?
|
||||
"asking bootloader to perform": "performing");
|
||||
|
||||
// Erase chip and clear cache
|
||||
int rc = pgm->chip_erase_cached(pgm, p);
|
||||
|
||||
Reference in New Issue
Block a user