diff --git a/main.c b/main.c index ac9d9a3..5b931a6 100644 --- a/main.c +++ b/main.c @@ -466,6 +466,12 @@ level pulse on the Hot Plug Detect pin. This pulse shall be at least 100 msec. } } + // verify stored EDID validity + if (!edid_length((uint8_t*)EEPROM_ADDR)) { + LED_PORT->ODR.reg &= ~LED_PIN; // switch LED on to indicate I²C read fail + puts("EEPROM EDID invalid\r\n"); + } + bool action = false; // if an action has been performed puts("loop\r\n"); while (true) {