Skip to content

Commit

Permalink
Merge pull request Zondax#5 from itsdevbear/master
Browse files Browse the repository at this point in the history
Resolves MacOS 12 deprecation compile error
  • Loading branch information
jleni committed Mar 2, 2022
2 parents 302fd40 + a59c1e6 commit 5552068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hidapi/mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
return NULL;

/* Get the IORegistry entry for the given path */
entry = IORegistryEntryFromPath(kIOMasterPortDefault, path);
entry = IORegistryEntryFromPath(kIOMainPortDefault, path);
if (entry == MACH_PORT_NULL) {
/* Path wasn't valid (maybe device was removed?) */
goto return_error;
Expand Down

0 comments on commit 5552068

Please sign in to comment.