Merge pull request #979 from MCUdude/dragon-jtag-fix
Dragon JTAG fix: restart firmware after programming
This commit is contained in:
commit
55dddc57cc
|
@ -1840,8 +1840,8 @@ void jtagmkII_close(PROGRAMMER * pgm)
|
||||||
|
|
||||||
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close()\n", progname);
|
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close()\n", progname);
|
||||||
|
|
||||||
if (pgm->flag & PGM_FL_IS_PDI) {
|
if (pgm->flag & (PGM_FL_IS_PDI | PGM_FL_IS_JTAG)) {
|
||||||
/* When in PDI mode, restart target. */
|
/* When in PDI or JTAG mode, restart target. */
|
||||||
buf[0] = CMND_GO;
|
buf[0] = CMND_GO;
|
||||||
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close(): Sending GO command: ",
|
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close(): Sending GO command: ",
|
||||||
progname);
|
progname);
|
||||||
|
|
Loading…
Reference in New Issue