Skip to content

Commit

Permalink
Human readable form of libusb->libusb_claim_interface->LIBUSB_ERROR_A…
Browse files Browse the repository at this point in the history
…CCESS

See #4
  • Loading branch information
jseaber committed Mar 28, 2022
1 parent 7382a97 commit 484c7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmos_dfu/xmosdfu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ int main(int argc, char **argv) {
printf("The device has been disconnected\n");
break;
case LIBUSB_ERROR_ACCESS:
printf("Access denied\n");
printf("LIBUSB_ERROR_ACCESS: Access denied. Try another USB port or reboot?\n");
break;
default:
printf("Unknown error code: %d\n", r);
Expand Down Expand Up @@ -495,5 +495,5 @@ int main(int argc, char **argv) {
libusb_close(devh);
libusb_exit(NULL);

return true;
return 1;
}

0 comments on commit 484c7ea

Please sign in to comment.