If the device is not open, don't try closing it.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1282 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2014-02-27 07:35:15 +00:00
parent 2de8e9c8ca
commit 0ca7d30267
1 changed files with 2 additions and 2 deletions

2
main.c
View File

@ -1391,9 +1391,9 @@ main_exit:
pgm->disable(pgm);
pgm->rdy_led(pgm, OFF);
}
pgm->close(pgm);
}
if (quell_progress < 2) {
fprintf(stderr, "\n%s done. Thank you.\n\n", progname);