mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Merge 0ff5953e811c997ed406c013f5f7a0a9aba9c9a6 into 69e0372cf0d3796e84ce9a09aff1d74496f68720
This commit is contained in:
commit
85178a46a0
@ -95,7 +95,7 @@ get_parent_iousb_device( io_object_t& serial_port )
|
|||||||
string name = get_class_name(device);
|
string name = get_class_name(device);
|
||||||
|
|
||||||
// Walk the IO Registry tree looking for this devices parent IOUSBDevice.
|
// Walk the IO Registry tree looking for this devices parent IOUSBDevice.
|
||||||
while( name != "IOUSBDevice" )
|
while( name != "IOUSBDevice" && name != "IOUSBHostInterface" )
|
||||||
{
|
{
|
||||||
kern_result = IORegistryEntryGetParentEntry( device,
|
kern_result = IORegistryEntryGetParentEntry( device,
|
||||||
kIOServicePlane,
|
kIOServicePlane,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user