Skip to content

Commit

Permalink
Checksum failure is non-conformance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jackson committed Oct 27, 2006
1 parent d02b557 commit 01f1b82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ int main(int argc, char **argv)
sum += edid[i];
has_valid_checksum = !sum;
}
if (!has_valid_checksum)
printf("Block has broken checksum!\n");

if (claims_one_point_three) {
if (!conformant_digital_display ||
Expand Down Expand Up @@ -302,6 +300,12 @@ int main(int argc, char **argv)
printf("\tName descriptor not terminated with a newline\n");
}

if (!has_valid_checksum) {
printf("EDID block does not conform at all!\n");
if (!has_valid_checksum)
printf("Block has broken checksum\n");
}

free(edid);

return 0;
Expand Down

0 comments on commit 01f1b82

Please sign in to comment.