From c999083b8f7a0312451ea9ed58cbb8bb76f4926d Mon Sep 17 00:00:00 2001 From: MCUdude Date: Thu, 20 Oct 2022 00:12:17 +0200 Subject: [PATCH] Change message type from error to warning and add additional USB info --- src/usb_hidapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/usb_hidapi.c b/src/usb_hidapi.c index b6dc3d33..4ad372b1 100644 --- a/src/usb_hidapi.c +++ b/src/usb_hidapi.c @@ -133,8 +133,9 @@ static int usbhid_open(const char *port, union pinfo pinfo, union filedescriptor dev = hid_open(pinfo.usbinfo.vid, pinfo.usbinfo.pid, NULL); if (dev == NULL) { - pmsg_error("no device found\n"); - return -1; + pmsg_warning("USB device with VID: 0x%04x and PID: 0x%04x not found\n", + pinfo.usbinfo.vid, pinfo.usbinfo.pid); + return -1; } }