In stk500v2_jtagmkII_open(), when the ICE synchronization failed,

still call the close method so we sign off correctly from the ICE:


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@646 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch 2006-09-06 22:33:59 +00:00
parent a850fd8c9e
commit 57e0ac23b3
1 changed files with 1 additions and 0 deletions

View File

@ -2140,6 +2140,7 @@ static int stk500v2_jtagmkII_open(PROGRAMMER * pgm, char * port)
if (jtagmkII_getsync(pgm, EMULATOR_MODE_SPI) != 0) { if (jtagmkII_getsync(pgm, EMULATOR_MODE_SPI) != 0) {
fprintf(stderr, "%s: failed to sync with the JTAG ICE mkII in ISP mode\n", fprintf(stderr, "%s: failed to sync with the JTAG ICE mkII in ISP mode\n",
progname); progname);
pgm->close(pgm); /* sign off correctly */
exit(1); exit(1);
} }