#822 Fixed print_parms for TPI.

This commit is contained in:
Jan Egil Ruud 2022-12-13 15:07:14 +01:00
parent af43a7757d
commit f08f771ab4
1 changed files with 23 additions and 23 deletions

View File

@ -2419,6 +2419,8 @@ void jtag3_print_parms1(const PROGRAMMER *pgm, const char *p, FILE *fp) {
}
}
// Print clocks if programmer typ is not TPI
if (strcmp(pgm->type, "JTAGICE3_TPI")) {
if (jtag3_getparm(pgm, SCOPE_AVR, 1, PARM3_CLK_MEGA_PROG, buf, 2) < 0)
return;
@ -2446,6 +2448,7 @@ void jtag3_print_parms1(const PROGRAMMER *pgm, const char *p, FILE *fp) {
if (b2_to_u16(buf) > 0) {
fmsg_out(fp, "%sPDI/UPDI clock Xmega/megaAVR : %u kHz\n", p, b2_to_u16(buf));
}
}
}
static void jtag3_print_parms(const PROGRAMMER *pgm, FILE *fp) {
@ -2613,10 +2616,7 @@ static int jtag3_initialize_tpi(const PROGRAMMER *pgm, const AVRPART *p) {
return -1;
free(resp);
if (jtag3_getparm(pgm, SCOPE_GENERAL, 1, PARM3_VTARGET, cmd, 2) < 0)
return -1;
fmsg_out(stderr, "%sVtarget %s: %.2f V\n", "",
verbose? "": " ", b2_to_u16(cmd)/1000.0);
jtag3_print_parms(pgm, stderr);
return 0;
}