improved EDID setting read

This commit is contained in:
King Kévin 2022-07-11 18:45:51 +02:00
parent b3d2ea58e5
commit 5bbe2eb5c7
1 changed files with 1 additions and 0 deletions

1
main.c
View File

@ -325,6 +325,7 @@ we will only be able to provide 1 extension block since we can only respond to o
// check if EDID should be copied
EDID_PORT->DDR.reg &= ~EDID_PIN; // switch pin to output
EDID_PORT->CR1.reg |= EDID_PIN; // enable pull up
wait_10us(1); // wait for pull up to take effect
if (EDID_PORT->IDR.reg & EDID_PIN) { // EDID switched off
puts("EDID protected\r\n");
} else if (i2c_fwd) { // we are not the only master on the I²C sink lines