mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
Fix enumeration on OS X.
This commit is contained in:
parent
c45eb4bee2
commit
0d34b4519c
@ -205,7 +205,7 @@ out_done:
|
|||||||
CFDictionarySetValue(classes,
|
CFDictionarySetValue(classes,
|
||||||
CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes));
|
CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes));
|
||||||
|
|
||||||
if (!(IOServiceGetMatchingServices(master, classes, &iter)))
|
if (IOServiceGetMatchingServices(master, classes, &iter) != KERN_SUCCESS)
|
||||||
{
|
{
|
||||||
ret = SP_ERR_FAIL;
|
ret = SP_ERR_FAIL;
|
||||||
goto out_done;
|
goto out_done;
|
||||||
|
Loading…
Reference in New Issue
Block a user