Skip to content

Commit

Permalink
hosted/bmp_libusb: PR review edit scan_for_devices
Browse files Browse the repository at this point in the history
  • Loading branch information
sidprice committed Jul 13, 2023
1 parent 09fc815 commit c025144
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platforms/hosted/bmp_libusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ static const probe_info_s *scan_for_devices(bmp_info_s *info)
probe_info_s *probe_list = NULL;

int result;
ssize_t cnt;
//
// If we are running on Windows the proprietary FTD2XX library is used
// to collect debugger information.
Expand All @@ -380,7 +379,7 @@ static const probe_info_s *scan_for_devices(bmp_info_s *info)
const bool skip_ftdi = false;
#endif

cnt = libusb_get_device_list(NULL, &device_list);
const ssize_t cnt = libusb_get_device_list(info->libusb_ctx, &device_list);
if (cnt > 0) {
// Parse the list of USB devices found

Expand Down

0 comments on commit c025144

Please sign in to comment.