Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

Commit

Permalink
(MAC) fixing segfault (signal11/hidapi#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
keighrim committed Jun 2, 2020
1 parent f06fe51 commit 77bd4e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,8 @@ hid_device * HID_API_EXPORT hid_open_path(const char *path)
}

/* Open the IOHIDDevice */
ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeSeizeDevice);
/* see https://github.com/signal11/hidapi/issues/266 */
ret = IOHIDDeviceOpen(dev->device_handle, kIOHIDOptionsTypeNone);
if (ret == kIOReturnSuccess) {
char str[32];

Expand Down

0 comments on commit 77bd4e0

Please sign in to comment.