Skip to content

Commit 38aa131

Browse files
committed
Print device code in avr910.c as unsigned char
1 parent a4bfa82 commit 38aa131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/avr910.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int avr910_initialize(PROGRAMMER * pgm, AVRPART * p)
234234
break;
235235
part = locate_part_by_avr910_devcode(part_list, c);
236236

237-
avrdude_message(MSG_INFO, " Device code: 0x%02x = %s\n", c, part ? part->desc : "(unknown)");
237+
avrdude_message(MSG_INFO, " Device code: 0x%02x = %s\n", c & 0xff, part? part->desc: "(unknown)");
238238

239239
/* FIXME: Need to lookup devcode and report the device. */
240240

0 commit comments

Comments
 (0)