Change message type from error to warning and add additional USB info
This commit is contained in:
parent
b864d7e73a
commit
c999083b8f
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue