diff --git a/platform/posix/darwin/cdcacmdarwin.cpp b/platform/posix/darwin/cdcacmdarwin.cpp index ea322e6..601c672 100644 --- a/platform/posix/darwin/cdcacmdarwin.cpp +++ b/platform/posix/darwin/cdcacmdarwin.cpp @@ -86,7 +86,7 @@ void CDCACM::Find(std::vector& found) { if(ref == nullptr) return; io_iterator_t matchingServices = 0; - kern_return_t kernResult = IOServiceGetMatchingServices(kIOMasterPortDefault, ref, &matchingServices); + kern_return_t kernResult = IOServiceGetMatchingServices(kIOMainPortDefault, ref, &matchingServices); if(KERN_SUCCESS != kernResult || matchingServices == 0) return; IOReleaser matchingServicesReleaser(matchingServices);