Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/XLink/XLinkPrivateFields.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define EXTRACT_STREAM_ID(streamId) ((streamId) & STREAM_ID_MASK)

#define COMBINE_IDS(streamId, linkid) \
streamId = streamId | ((linkid & LINK_ID_MASK) << LINK_ID_SHIFT);
streamId = streamId | (((uint32_t)linkid & LINK_ID_MASK) << LINK_ID_SHIFT);

// ------------------------------------
// Global fields declaration. Begin.
Expand Down
1 change: 1 addition & 0 deletions src/pc/protocols/usb_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ xLinkPlatformErrorCode_t usbLinkOpen(const char *path, libusb_device_handle*& h)

uint8_t ep = 0;
libusb_error libusb_rc = usb_open_device(dev, &ep, h);
libusb_unref_device(dev);
if(libusb_rc == LIBUSB_SUCCESS) {
return X_LINK_PLATFORM_SUCCESS;
} else if(libusb_rc == LIBUSB_ERROR_ACCESS) {
Expand Down
Loading