Mute missing USB device warning for lower verbosity levels

This commit is contained in:
MCUdude
2023-06-14 20:20:12 +02:00
parent 106bb57a09
commit 5078f35c9b

View File

@@ -123,8 +123,10 @@ 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)
{
if (verbose > 1) {
pmsg_warning("USB device with VID: 0x%04x and PID: 0x%04x not found\n",
pinfo.usbinfo.vid, pinfo.usbinfo.pid);
}
return -1;
}
}