Fix detection of USB to serial adapters

pull/16/head
Timothy Pearson 13 years ago
parent 9bc0d2cd9d
commit fc2d90d56c

@ -2978,7 +2978,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mouse); if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mouse);
} }
if (!device) { if (!device) {
// Second mouse check // Second mouse check
// Look for ID_INPUT_MOUSE property presence // Look for ID_INPUT_MOUSE property presence
if (udev_device_get_property_value(dev, "ID_INPUT_MOUSE") != 0) { if (udev_device_get_property_value(dev, "ID_INPUT_MOUSE") != 0) {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mouse); if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mouse);
@ -3003,6 +3003,9 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::TextIO); if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::TextIO);
} }
} }
else if (devicesubsystem == "usb-serial") {
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Serial);
}
else if (devicesubsystem == "thermal") { else if (devicesubsystem == "thermal") {
// FIXME // FIXME
// Figure out a way to differentiate between ThermalControl (fans and coolers) and ThermalSensor types // Figure out a way to differentiate between ThermalControl (fans and coolers) and ThermalSensor types

Loading…
Cancel
Save