private UsbSerialDeviceInfo FindDeviceInfo(UsbSerialDeviceID id) { if (AvailableDeviceInfo.ContainsKey(id)) { return(AvailableDeviceInfo[id]); } else { return(null); } }
private UsbSerialDeviceInfo FindDeviceInfo(UsbSerialDeviceID id, UsbClass usbClass, bool allowAnonymousCdcAcmDevices) { if (AvailableDeviceInfo.ContainsKey(id)) { return(AvailableDeviceInfo[id]); } if (allowAnonymousCdcAcmDevices && usbClass == UsbClass.Comm) { return(UsbSerialDeviceInfo.CdcAcm); } return(null); }