mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 09:36:24 +03:00
Ensure avr_signature()'s LIBAVRDUDE_EXIT return exits in main.c
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user