Skip to content

Commit

Permalink
Fix vendor section decode
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jackson committed Dec 11, 2006
1 parent 6455fa0 commit 3f4668e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ int main(int argc, char **argv)

printf("Manufacturer: %s Model %x Serial Number %u\n",
manufacturer_name(edid + 0x08),
(unsigned short)edid[0x0A],
(unsigned int)edid[0x0C]);
(unsigned short)(edid[0x0A] + (edid[0x0B] << 8)),
(unsigned int)(edid[0x0C] + (edid[0x0D] << 8)
+ (edid[0x0E] << 16) + (edid[0x0F] << 24)));
/* XXX need manufacturer ID table */

time(&the_time);
Expand Down

0 comments on commit 3f4668e

Please sign in to comment.