[FREELDR] Reduce the timeout during serial mouse detection. CORE-14280

This commit is contained in:
Thomas Faber 2018-01-30 20:50:05 +01:00
parent 4d811a2f97
commit 76c2045434
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -340,12 +340,12 @@ DetectSerialMouse(PUCHAR Port)
StallExecutionProcessor(10000);
/* Read first four bytes, which contains Microsoft Mouse signs */
TimeOut = 200;
TimeOut = 20;
for (i = 0; i < 4; i++)
{
while ((READ_PORT_UCHAR(Port + 5) & 1) == 0)
{
StallExecutionProcessor(1000);
StallExecutionProcessor(100);
--TimeOut;
if (TimeOut == 0)
return MOUSE_TYPE_NONE;