Don't display target info that's not present in Avrdude.conf

I still have to figure out why all parts are flagged with support for both serial and parallel programming interfaces, even when this is not the case
This commit is contained in:
MCUdude 2022-01-09 18:13:07 +01:00
parent 8f16c2a1e4
commit 2fd967866c
1 changed files with 27 additions and 34 deletions

View File

@ -626,40 +626,33 @@ void avr_display(FILE * f, AVRPART * p, const char * prefix, int verbose)
LNODEID ln; LNODEID ln;
AVRMEM * m; AVRMEM * m;
fprintf(f, fprintf( f, "%sAVR Part : %s\n", prefix, p->desc);
"%sAVR Part : %s\n" if (p->chip_erase_delay)
"%sChip Erase delay : %d us\n" fprintf(f, "%sChip Erase delay : %d us\n", prefix, p->chip_erase_delay);
"%sPAGEL : P%02X\n" if (p->pagel)
"%sBS2 : P%02X\n" fprintf(f, "%sPAGEL : P%02X\n", prefix, p->pagel);
"%sRESET disposition : %s\n" if (p->bs2)
"%sRETRY pulse : %s\n" fprintf(f, "%sBS2 : P%02X\n", prefix, p->bs2);
"%sserial program mode : %s\n" fprintf( f, "%sRESET disposition : %s\n", prefix, reset_disp_str(p->reset_disposition));
"%sparallel program mode : %s\n" fprintf( f, "%sRETRY pulse : %s\n", prefix, avr_pin_name(p->retry_pulse));
"%sTimeout : %d\n" fprintf( f, "%sSerial program mode : %s\n", prefix, (p->flags & AVRPART_SERIALOK) ? "yes" : "no");
"%sStabDelay : %d\n" fprintf( f, "%sParallel program mode : %s\n", prefix, (p->flags & AVRPART_PARALLELOK) ?
"%sCmdexeDelay : %d\n" ((p->flags & AVRPART_PSEUDOPARALLEL) ? "pseudo" : "yes") : "no");
"%sSyncLoops : %d\n" if(p->timeout)
"%sByteDelay : %d\n" fprintf(f, "%sTimeout : %d\n", prefix, p->timeout);
"%sPollIndex : %d\n" if(p->stabdelay)
"%sPollValue : 0x%02x\n" fprintf(f, "%sStabDelay : %d\n", prefix, p->stabdelay);
"%sMemory Detail :\n\n", if(p->cmdexedelay)
prefix, p->desc, fprintf(f, "%sCmdexeDelay : %d\n", prefix, p->cmdexedelay);
prefix, p->chip_erase_delay, if(p->synchloops)
prefix, p->pagel, fprintf(f, "%sSyncLoops : %d\n", prefix, p->synchloops);
prefix, p->bs2, if(p->bytedelay)
prefix, reset_disp_str(p->reset_disposition), fprintf(f, "%sByteDelay : %d\n", prefix, p->bytedelay);
prefix, avr_pin_name(p->retry_pulse), if(p->pollindex)
prefix, (p->flags & AVRPART_SERIALOK) ? "yes" : "no", fprintf(f, "%sPollIndex : %d\n", prefix, p->pollindex);
prefix, (p->flags & AVRPART_PARALLELOK) ? if(p->pollvalue)
((p->flags & AVRPART_PSEUDOPARALLEL) ? "pseudo" : "yes") : "no", fprintf(f, "%sPollValue : 0x%02x\n", prefix, p->pollvalue);
prefix, p->timeout, fprintf( f, "%sMemory Detail :\n\n", prefix);
prefix, p->stabdelay,
prefix, p->cmdexedelay,
prefix, p->synchloops,
prefix, p->bytedelay,
prefix, p->pollindex,
prefix, p->pollvalue,
prefix);
px = prefix; px = prefix;
i = strlen(prefix) + 5; i = strlen(prefix) + 5;