1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-08 00:16:13 +00:00

Corrected USB Control Request Type definitions

Even though they are not being used, might as well set them right. The other option would be to delete these four lines. For reference, http://www.beyondlogic.org/usbnutshell/usb6.shtml

SIgned-off-by Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
This commit is contained in:
Venkatesh Shukla 2014-05-18 22:47:17 +05:30
parent 5c8a6556a9
commit 6ef7e80f81

View File

@ -90,9 +90,9 @@ import java.util.Map;
public class FtdiSerialDriver extends CommonUsbSerialDriver { public class FtdiSerialDriver extends CommonUsbSerialDriver {
public static final int USB_TYPE_STANDARD = 0x00 << 5; public static final int USB_TYPE_STANDARD = 0x00 << 5;
public static final int USB_TYPE_CLASS = 0x00 << 5; public static final int USB_TYPE_CLASS = 0x01 << 5;
public static final int USB_TYPE_VENDOR = 0x00 << 5; public static final int USB_TYPE_VENDOR = 0x02 << 5;
public static final int USB_TYPE_RESERVED = 0x00 << 5; public static final int USB_TYPE_RESERVED = 0x03 << 5;
public static final int USB_RECIP_DEVICE = 0x00; public static final int USB_RECIP_DEVICE = 0x00;
public static final int USB_RECIP_INTERFACE = 0x01; public static final int USB_RECIP_INTERFACE = 0x01;