From 80d11823a8bcef489b09312d0d5b952e577673ee Mon Sep 17 00:00:00 2001 From: Nitin Nair Date: Thu, 13 Jul 2023 17:41:18 -0400 Subject: [PATCH] Fixes issue with macOS big-sur+ where device information is reported as n/a. check https://github.com/EmotiBit/ofxEmotiBit/issues/213#issuecomment-1632707119 for more details" --- libs/serial/src/impl/list_ports/list_ports_osx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/serial/src/impl/list_ports/list_ports_osx.cc b/libs/serial/src/impl/list_ports/list_ports_osx.cc index 333c55c..6946521 100755 --- a/libs/serial/src/impl/list_ports/list_ports_osx.cc +++ b/libs/serial/src/impl/list_ports/list_ports_osx.cc @@ -95,7 +95,7 @@ get_parent_iousb_device( io_object_t& serial_port ) string name = get_class_name(device); // Walk the IO Registry tree looking for this devices parent IOUSBDevice. - while( name != "IOUSBDevice" ) + while( name != "IOUSBDevice" && name != "IOUSBHostInterface" ) { kern_result = IORegistryEntryGetParentEntry( device, kIOServicePlane,