summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-02-04 21:04:18 +0100
committerSlávek Banko <[email protected]>2016-02-04 21:04:18 +0100
commit613eadbbc35a25f19c205c32eeeb0b890d468aa6 (patch)
tree7a1927fca75b8729153995758baa82a3df18731c /tdecore/tdehw
parentef7180dad939e407f0efd9a02ffcac6ab249f866 (diff)
downloadtdelibs-613eadbbc35a25f19c205c32eeeb0b890d468aa6.tar.gz
tdelibs-613eadbbc35a25f19c205c32eeeb0b890d468aa6.zip
Add a rule for classifying ATA Compact Flash Adapter
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdecore/tdehw')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index c2a7fd788..4da8382ae 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -1044,7 +1044,8 @@ TDEDiskDeviceType::TDEDiskDeviceType classifyDiskType(udev_device* dev, const TQ
}
if ((disktypestring.upper() == "COMPACT_FLASH")
- || (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLASH_CF")) == "1")) {
+ || (TQString(udev_device_get_property_value(dev, "ID_DRIVE_FLASH_CF")) == "1")
+ || (TQString(udev_device_get_property_value(dev, "ID_ATA_CFA")) == "1")) {
disktype = disktype | TDEDiskDeviceType::CompactFlash;
disktype = disktype | TDEDiskDeviceType::HDD;
}