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:
parent
ec56e9c6f1
commit
3daf3d53a3
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue