Fix JTAG transaction close issue

Fixes issue #366
This commit is contained in:
MCUdude 2022-05-29 13:12:50 +02:00 committed by Stefan Rueger
parent 37026cad52
commit 963a1e54af
1 changed files with 2 additions and 2 deletions

View File

@ -1840,8 +1840,8 @@ void jtagmkII_close(PROGRAMMER * pgm)
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close()\n", progname);
if (pgm->flag & PGM_FL_IS_PDI) {
/* When in PDI mode, restart target. */
if (pgm->flag & (PGM_FL_IS_PDI | PGM_FL_IS_JTAG)) {
/* When in PDI or JTAG mode, restart target. */
buf[0] = CMND_GO;
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close(): Sending GO command: ",
progname);