Ensure avr_signature()'s LIBAVRDUDE_EXIT return exits in main.c

This commit is contained in:
Stefan Rueger
2024-04-25 19:33:24 +01:00
parent a4a783a2e2
commit f1d7784415

View File

@@ -1554,6 +1554,10 @@ skipopen:
usleep(waittime);
if (init_ok) {
rc = avr_signature(pgm, p);
if (rc == LIBAVRDUDE_EXIT) {
exitrc = 0;
goto main_exit;
}
if (rc != LIBAVRDUDE_SUCCESS) {
if (rc == LIBAVRDUDE_SOFTFAIL && (p->prog_modes & PM_UPDI) && attempt < 1) {
attempt++;