summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ddcprobe/ddcprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c
index d590b5e93..48b4afd64 100644
--- a/ddcprobe/ddcprobe.c
+++ b/ddcprobe/ddcprobe.c
@@ -103,6 +103,12 @@ int main(int argc, char **argv)
exit(0);
}
+ if ((edid_info->version == 0xff && edid_info->revision == 0xff)
+ || (edid_info->version == 0 && edid_info->revision == 0)) {
+ printf("EDID read failed, returned empty data\n");
+ exit(0);
+ }
+
printf("EDID ver. %d rev. %d.\n",
edid_info->version, edid_info->revision);