From 4bea5cfe811f7ef05eea458a2b12e5045dbf8c30 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 11 Jul 2022 10:02:50 -0400 Subject: [PATCH] hosted/cmsis_dap: Added a call to hid_error() when hid_open fails --- src/platforms/hosted/cmsis_dap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/hosted/cmsis_dap.c b/src/platforms/hosted/cmsis_dap.c index 2ac7567..960a7a6 100644 --- a/src/platforms/hosted/cmsis_dap.c +++ b/src/platforms/hosted/cmsis_dap.c @@ -87,7 +87,7 @@ int dap_init(bmp_info_t *info) } handle = hid_open(info->vid, info->pid, (serial[0]) ? serial : NULL); if (!handle) { - DEBUG_WARN("hid_open failed\n"); + DEBUG_WARN("hid_open failed: %ls\n", hid_error(NULL)); return -1; } } else if (type == CMSIS_TYPE_BULK) {