Skip to content

Display and control your Android device

Add libusb error log

Romain Vimonte4bb2b872816
diff --git a/app/src/usb/usb.c b/app/src/usb/usb.c
index 32a66f98..97aa9a33 100644
--- a/app/src/usb/usb.c
+++ b/app/src/usb/usb.c
@@ -15,6 +15,7 @@ read_string(libusb_device_handle *handle, uint8_t desc_index) {
(unsigned char *) buffer,
sizeof(buffer));
if (result < 0) {
+ LOGD("Read string: libusb error: %s", libusb_strerror(result));
return NULL;
}