Skip to content

Commit

Permalink
Exit if programmer can't send HV pulse to target
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Jul 13, 2022
1 parent dc6c10d commit dde3501
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jtag3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1266,9 +1266,11 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)
parm[0] = PARM3_UPDI_HV_SIMPLE_PULSE;
break;
}
if (parm[0] == PARM3_UPDI_HV_NONE)
if (parm[0] == PARM3_UPDI_HV_NONE) {
avrdude_message(MSG_INFO, "%s: %s does not support sending HV pulse to target %s\n",
progname, pgm->desc, p->desc);
return -1;
}
}
if (jtag3_setparm(pgm, SCOPE_AVR, 3, PARM3_OPT_12V_UPDI_ENABLE, parm, 1) < 0)
return -1;
Expand Down

0 comments on commit dde3501

Please sign in to comment.