From 9d21e05059b2ac610eaedc8c283c63d89fd41cd9 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sat, 6 Jul 2024 02:07:44 +0100 Subject: [PATCH] Not show EEPROM erase note when a bootloader --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index ce0eef14..de4b564e 100644 --- a/src/term.c +++ b/src/term.c @@ -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)