main: limit EDID length to 256 bytes
This commit is contained in:
parent
2f0ffb9c5a
commit
31815bd66e
5
main.c
5
main.c
|
@ -378,7 +378,10 @@ i2c_end:
|
|||
softi2c_master_stop();
|
||||
if (0 == i2c_rc) {
|
||||
puts("success\r\n");
|
||||
const uint16_t edid_len = edid_length(edid_sink); // get length
|
||||
uint16_t edid_len = edid_length(edid_sink); // get length
|
||||
if (edid_len > 256) { // we only support up to one extension
|
||||
edid_len = 256;
|
||||
}
|
||||
if (edid_len) { // EDID is valid
|
||||
edid_modify(edid_sink); // modify EDID to include firewall indication
|
||||
// compare saved/source and sink EDID
|
||||
|
|
Loading…
Reference in New Issue