Not show EEPROM erase note when a bootloader

This commit is contained in:
Stefan Rueger
2024-07-06 02:07:44 +01:00
parent 1e05d70cda
commit 9d21e05059

View File

@@ -965,7 +965,7 @@ static int cmd_erase(const PROGRAMMER *pgm, const AVRPART *p, int argc, const ch
}
const char *note = "";
if(avr_locate_eeprom(p)) {
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)