Change message type from error to warning and add additional USB info

This commit is contained in:
MCUdude 2022-10-20 00:12:17 +02:00
parent b864d7e73a
commit c999083b8f
1 changed files with 3 additions and 2 deletions

View File

@ -133,7 +133,8 @@ static int usbhid_open(const char *port, union pinfo pinfo, union filedescriptor
dev = hid_open(pinfo.usbinfo.vid, pinfo.usbinfo.pid, NULL); dev = hid_open(pinfo.usbinfo.vid, pinfo.usbinfo.pid, NULL);
if (dev == NULL) if (dev == NULL)
{ {
pmsg_error("no device found\n"); pmsg_warning("USB device with VID: 0x%04x and PID: 0x%04x not found\n",
pinfo.usbinfo.vid, pinfo.usbinfo.pid);
return -1; return -1;
} }
} }