RCM bugfix

This commit is contained in:
Dmitry Isaenko 2020-02-10 02:52:59 +03:00
parent 010c33c593
commit ec4362ebc7
2 changed files with 1 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import nsusbloader.NSLDataTypes.EMsgType;
import org.usb4java.*; import org.usb4java.*;
public class UsbConnect { public class UsbConnect {
private int DEFAULT_INTERFACE; private int DEFAULT_INTERFACE = 0;
private Context contextNS; private Context contextNS;
private DeviceHandle handlerNS; private DeviceHandle handlerNS;
@ -24,17 +24,14 @@ public class UsbConnect {
if (initForRCM){ if (initForRCM){
// CORRECT NV: // CORRECT NV:
DEFAULT_INTERFACE = 1;
VENDOR_ID = 0x0955; VENDOR_ID = 0x0955;
PRODUCT_ID = 0x7321; PRODUCT_ID = 0x7321;
/* // QA: /* // QA:
DEFAULT_INTERFACE = 0;
VENDOR_ID = 0x1a86; VENDOR_ID = 0x1a86;
PRODUCT_ID = 0x7523; PRODUCT_ID = 0x7523;
*/ */
} }
else { else {
DEFAULT_INTERFACE = 0;
VENDOR_ID = 0x057E; VENDOR_ID = 0x057E;
PRODUCT_ID = 0x3000; PRODUCT_ID = 0x3000;
} }