(UsbDevice device)
| 219 | } |
| 220 | |
| 221 | private static boolean isSupported(UsbDevice device) { |
| 222 | return UsbSerialDevice.isSupported(device) && |
| 223 | exists(supported_ids, device.getVendorId(), device.getProductId()); |
| 224 | } |
| 225 | |
| 226 | private static boolean isSameDeviceName(UsbDevice a, UsbDevice b) { |
| 227 | return a.getDeviceName().equals(b.getDeviceName()); |