mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Fix serial mouse type detection
Shut up some debug message svn path=/trunk/; revision=20261
This commit is contained in:
@@ -186,7 +186,7 @@ SermouseDetectLegacyDevice(
|
||||
&Fcr, sizeof(Fcr), NULL, NULL);
|
||||
if (!NT_SUCCESS(Status)) goto ByeBye;
|
||||
/* Set serial port speed */
|
||||
BaudRate = SERIAL_BAUD_1200;
|
||||
BaudRate = 1200;
|
||||
Status = SermouseDeviceIoControl(LowerDevice, IOCTL_SERIAL_SET_BAUD_RATE,
|
||||
&BaudRate, sizeof(BaudRate), NULL, NULL);
|
||||
if (!NT_SUCCESS(Status)) goto ByeBye;
|
||||
|
||||
@@ -115,8 +115,6 @@ cleanup:
|
||||
Fdo->Flags |= DO_BUFFERED_IO;
|
||||
Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
|
||||
|
||||
/* FIXME: create registry entry in HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP */
|
||||
|
||||
ExFreePool(DeviceNameU.Buffer);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
@@ -124,6 +122,8 @@ cleanup:
|
||||
cleanupFDO:
|
||||
if (DeviceExtension)
|
||||
{
|
||||
if (DeviceExtension->LowerDevice)
|
||||
IoDetachDevice(DeviceExtension->LowerDevice);
|
||||
ExFreePool(DeviceExtension->MouseInputData[0]);
|
||||
ExFreePool(DeviceExtension->MouseInputData[1]);
|
||||
}
|
||||
@@ -177,7 +177,7 @@ SermouseStartDevice(
|
||||
/* Override the number of buttons */
|
||||
DeviceExtension->AttributesInformation.NumberOfButtons = DeviceExtension->DriverExtension->NumberOfButtons;
|
||||
|
||||
DeviceExtension->AttributesInformation.SampleRate = 1200 / 8;
|
||||
DeviceExtension->AttributesInformation.SampleRate = DeviceExtension->DriverExtension->SampleRate / 8;
|
||||
DeviceExtension->AttributesInformation.InputDataQueueLength = DeviceExtension->DriverExtension->MouseDataQueueSize;
|
||||
DeviceExtension->MouseType = MouseType;
|
||||
DeviceExtension->PnpState = dsStarted;
|
||||
|
||||
@@ -172,7 +172,7 @@ SermouseDeviceWorker(
|
||||
for (i = 0; i < ioStatus.Information; i++)
|
||||
{
|
||||
ReceivedByte = Buffer[i];
|
||||
DPRINT1("ReceivedByte 0x%02x\n", ReceivedByte);
|
||||
DPRINT("ReceivedByte 0x%02x\n", ReceivedByte);
|
||||
|
||||
/* Synchronize */
|
||||
if ((ReceivedByte & 0x40) == 0x40)
|
||||
|
||||
Reference in New Issue
Block a user