mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 15:05:27 +00:00
Change message type from error to warning and add additional USB info
This commit is contained in:
@@ -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);
|
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",
|
||||||
return -1;
|
pinfo.usbinfo.vid, pinfo.usbinfo.pid);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user