Permalink
Browse files

libusb: check libusb_reset_device result

  • Loading branch information...
mringwal committed Jan 23, 2019
1 parent 84b427c commit 6f7dfc693bf8696c2262c990f13b1be3c7d87320
Showing with 1 addition and 1 deletion.
  1. +1 −1 platform/libusb/hci_transport_h2_libusb.c
@@ -791,7 +791,7 @@ static libusb_device_handle * try_open_device(libusb_device * device){
log_info("libusb open %d, handle %p", r, dev_handle);

// reset device
libusb_reset_device(dev_handle);
r = libusb_reset_device(dev_handle);
if (r < 0) {
log_error("libusb_reset_device failed!");
libusb_close(dev_handle);

0 comments on commit 6f7dfc6

Please sign in to comment.