mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 17:34:56 +00:00
patch #8440 Print part id after signature
When printing the part signature also print the part id. * avrpart.c (locate_part_by_signature): New function. * libavrdude.h (locate_part_by_signature): New function. * main.c (main): Use the new function to find the part and print its id. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1332 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
8
main.c
8
main.c
@@ -1033,6 +1033,14 @@ int main(int argc, char * argv [])
|
||||
if (sig->buf[i] != 0x00)
|
||||
zz = 0;
|
||||
}
|
||||
if (quell_progress < 2) {
|
||||
AVRPART * part;
|
||||
|
||||
part = locate_part_by_signature(part_list, sig->buf, sig->size);
|
||||
if (part) {
|
||||
avrdude_message(MSG_INFO, " (probably %s)", part->id);
|
||||
}
|
||||
}
|
||||
if (ff || zz) {
|
||||
if (++attempt < 3) {
|
||||
waittime *= 5;
|
||||
|
||||
Reference in New Issue
Block a user