mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 02:17:23 +00:00 
			
		
		
		
	Rename LUFA ids (which use Ateml's vendor code) to match Linux usb.ids
This commit is contained in:
		
							parent
							
								
									890e543e0c
								
							
						
					
					
						commit
						c3ac464ab3
					
				| @ -254,9 +254,9 @@ public class CdcAcmSerialDriver extends UsbSerialDriver { | |||||||
|                 new int[] { |                 new int[] { | ||||||
|                     UsbId.VAN_OOIJEN_TECH_TEENSYDUINO_SERIAL, |                     UsbId.VAN_OOIJEN_TECH_TEENSYDUINO_SERIAL, | ||||||
|                 }); |                 }); | ||||||
|         supportedDevices.put(Integer.valueOf(UsbId.VENDOR_LUFA), |         supportedDevices.put(Integer.valueOf(UsbId.VENDOR_ATMEL), | ||||||
|                 new int[] { |                 new int[] { | ||||||
|                     UsbId.LUFA_VIRTUAL_SERIAL, |                     UsbId.ATMEL_LUFA_CDC_DEMO_APP, | ||||||
|                 }); |                 }); | ||||||
|         return supportedDevices; |         return supportedDevices; | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -32,8 +32,8 @@ public final class UsbId { | |||||||
|     public static final int VENDOR_FTDI = 0x0403; |     public static final int VENDOR_FTDI = 0x0403; | ||||||
|     public static final int FTDI_FT232R = 0x6001; |     public static final int FTDI_FT232R = 0x6001; | ||||||
| 
 | 
 | ||||||
|     public static final int VENDOR_LUFA = 0x03EB; |     public static final int VENDOR_ATMEL = 0x03EB; | ||||||
|     public static final int LUFA_VIRTUAL_SERIAL = 0x2044; |     public static final int ATMEL_LUFA_CDC_DEMO_APP = 0x2044; | ||||||
| 
 | 
 | ||||||
|     public static final int VENDOR_ARDUINO = 0x2341; |     public static final int VENDOR_ARDUINO = 0x2341; | ||||||
|     public static final int ARDUINO_UNO = 0x0001; |     public static final int ARDUINO_UNO = 0x0001; | ||||||
| @ -49,6 +49,9 @@ public final class UsbId { | |||||||
|     public static final int VENDOR_VAN_OOIJEN_TECH = 0x16c0; |     public static final int VENDOR_VAN_OOIJEN_TECH = 0x16c0; | ||||||
|     public static final int VAN_OOIJEN_TECH_TEENSYDUINO_SERIAL = 0x0483; |     public static final int VAN_OOIJEN_TECH_TEENSYDUINO_SERIAL = 0x0483; | ||||||
| 
 | 
 | ||||||
|  |     public static final int VENDOR_LEAFLABS = 0x1eaf; | ||||||
|  |     public static final int LEAFLABS_MAPLE = 0x0004; | ||||||
|  | 
 | ||||||
|     private UsbId() { |     private UsbId() { | ||||||
|         throw new IllegalAccessError("Non-instantiable class."); |         throw new IllegalAccessError("Non-instantiable class."); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user