Merge 0c9f1c5f3e into d42c51d772
commit
fa1394f611
|
|
@ -108,8 +108,9 @@ void CDCACM::Find(std::vector<FoundDevice>& found) {
|
||||||
releasers.emplace_back(parent);
|
releasers.emplace_back(parent);
|
||||||
current = parent;
|
current = parent;
|
||||||
// On old macOSes, IOUSBDevice is the type of the class we want
|
// On old macOSes, IOUSBDevice is the type of the class we want
|
||||||
// On newer macOSes, IOUSBDevice may further be subclassed as IOUSBHostDevice
|
// On macOS 12+, IOUSBHostDevice is the main USB device class (separate hierarchy from IOUSBDevice)
|
||||||
if(IOObjectConformsTo(parent, kIOUSBDeviceClassName)) {
|
if(IOObjectConformsTo(parent, kIOUSBDeviceClassName) ||
|
||||||
|
IOObjectConformsTo(parent, "IOUSBHostDevice")) {
|
||||||
usb = parent;
|
usb = parent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue