Remove note on what CE might erase

This commit is contained in:
Stefan Rueger
2024-07-07 00:08:57 +01:00
parent d3ce83ce0e
commit 0f74b7be85

View File

@@ -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);