}
public static boolean isCrazyRadio(UsbDevice device) {
UsbDeviceDescriptor desc = device.getUsbDeviceDescriptor();
return desc.idVendor() == CrazyradioDriver.VENDOR_ID
&& desc.idProduct() == CrazyradioDriver.PRODUCT_ID;
}
@SuppressWarnings("unchecked")
private static final UsbDevice findDevice() throws Exception {
UsbServices services = UsbHostManager.getUsbServices();