mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-20 16:08:37 +02:00
Compare commits
2
Commits
1.4.1
...
6783d72a4a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6783d72a4a | ||
|
|
0c9f1c5f3e |
@@ -108,8 +108,9 @@ void CDCACM::Find(std::vector<FoundDevice>& found) {
|
||||
releasers.emplace_back(parent);
|
||||
current = parent;
|
||||
// On old macOSes, IOUSBDevice is the type of the class we want
|
||||
// On newer macOSes, IOUSBDevice may further be subclassed as IOUSBHostDevice
|
||||
if(IOObjectConformsTo(parent, kIOUSBDeviceClassName)) {
|
||||
// On macOS 12+, IOUSBHostDevice is the main USB device class (separate hierarchy from IOUSBDevice)
|
||||
if(IOObjectConformsTo(parent, kIOUSBDeviceClassName) ||
|
||||
IOObjectConformsTo(parent, "IOUSBHostDevice")) {
|
||||
usb = parent;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user