mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-18 11:24:42 +00:00
Emulate chip erase in terminal when pgm->chip_erase() soft fails
This commit is contained in:
@@ -1395,7 +1395,10 @@ int main(int argc, char * argv [])
|
||||
} else {
|
||||
pmsg_info("erasing chip\n");
|
||||
exitrc = avr_chip_erase(pgm, p);
|
||||
if(exitrc)
|
||||
if(exitrc == LIBAVRDUDE_SOFTFAIL) {
|
||||
imsg_info("delaying chip erase until first -U upload to flash\n");
|
||||
exitrc = 1;
|
||||
} else if(exitrc)
|
||||
goto main_exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user