summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-11 15:15:06 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-11 15:15:06 -0500
commitfc2d90d56cc7ebe8b0f402dd85e7e13ef47dcfa6 (patch)
tree390887830afdc5e527bc734892708b31cf01864c /tdecore
parent9bc0d2cd9d38750658770e69bf0445dc5162beb7 (diff)
downloadtdelibs-fc2d90d56cc7ebe8b0f402dd85e7e13ef47dcfa6.tar.gz
tdelibs-fc2d90d56cc7ebe8b0f402dd85e7e13ef47dcfa6.zip
Fix detection of USB to serial adapters
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehardwaredevices.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp
index 083d82bbc..100a24c8c 100644
--- a/tdecore/tdehardwaredevices.cpp
+++ b/tdecore/tdehardwaredevices.cpp
@@ -2978,7 +2978,7 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Mouse);
}
if (!device) {
- // Second mouse check
+ // Second mouse check
// Look for ID_INPUT_MOUSE property presence
if (udev_device_get_property_value(dev, "ID_INPUT_MOUSE") != 0) {
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);
}
}
+ else if (devicesubsystem == "usb-serial") {
+ if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Serial);
+ }
else if (devicesubsystem == "thermal") {
// FIXME
// Figure out a way to differentiate between ThermalControl (fans and coolers) and ThermalSensor types