mirror of
https://github.com/reactos/reactos.git
synced 2025-05-01 19:50:36 +00:00
[FREELDR] Reduce the timeout during serial mouse detection. CORE-14280
This commit is contained in:
parent
4d811a2f97
commit
76c2045434
1 changed files with 2 additions and 2 deletions
|
@ -340,12 +340,12 @@ DetectSerialMouse(PUCHAR Port)
|
||||||
StallExecutionProcessor(10000);
|
StallExecutionProcessor(10000);
|
||||||
|
|
||||||
/* Read first four bytes, which contains Microsoft Mouse signs */
|
/* Read first four bytes, which contains Microsoft Mouse signs */
|
||||||
TimeOut = 200;
|
TimeOut = 20;
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
while ((READ_PORT_UCHAR(Port + 5) & 1) == 0)
|
while ((READ_PORT_UCHAR(Port + 5) & 1) == 0)
|
||||||
{
|
{
|
||||||
StallExecutionProcessor(1000);
|
StallExecutionProcessor(100);
|
||||||
--TimeOut;
|
--TimeOut;
|
||||||
if (TimeOut == 0)
|
if (TimeOut == 0)
|
||||||
return MOUSE_TYPE_NONE;
|
return MOUSE_TYPE_NONE;
|
||||||
|
|
Loading…
Reference in a new issue