Skip to content

Commit

Permalink
Add libusb error log
Browse files Browse the repository at this point in the history
Log libusb_get_string_descriptor_ascii() errors.

Refs #3050 <#3050>
  • Loading branch information
rom1v committed Feb 24, 2022
1 parent adbe790 commit e4bb2b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/usb/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e4bb2b8

Please sign in to comment.