Kernel: Serial now uses random size for some serial ports

If the serial port doesn't repond with a size, just use a random
one. There is no reason to ditch the whole output if you cannot
determine its size.
This commit is contained in:
Bananymous 2023-11-17 18:56:02 +02:00
parent ec56e9c6f1
commit 3daf3d53a3
1 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,11 @@ namespace Kernel
auto& driver = s_serial_drivers[i]; auto& driver = s_serial_drivers[i];
driver.m_port = s_serial_ports[i]; driver.m_port = s_serial_ports[i];
if (!driver.initialize_size()) if (!driver.initialize_size())
continue; {
// if size detection fails, just use some random size
driver.m_width = 999;
driver.m_height = 999;
}
count++; count++;
} }
} }