From 484c7ea329f104f95b7d038e198ffe91d098a8d8 Mon Sep 17 00:00:00 2001 From: jseaber Date: Mon, 28 Mar 2022 16:29:02 -0500 Subject: [PATCH] Human readable form of libusb->libusb_claim_interface->LIBUSB_ERROR_ACCESS See #4 --- xmos_dfu/xmosdfu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmos_dfu/xmosdfu.cpp b/xmos_dfu/xmosdfu.cpp index 09b75b5..9ceeec3 100644 --- a/xmos_dfu/xmosdfu.cpp +++ b/xmos_dfu/xmosdfu.cpp @@ -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); @@ -495,5 +495,5 @@ int main(int argc, char **argv) { libusb_close(devh); libusb_exit(NULL); - return true; + return 1; }