1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-07 07:56:20 +00:00

Specify Support is only for Micropython

This commit is contained in:
Doug MacEwen 2022-02-11 11:30:55 -08:00
parent 49ee2d3c8e
commit a2fa5f010a
3 changed files with 3 additions and 3 deletions

View File

@ -32,5 +32,5 @@
<usb-device vendor-id="7855" product-id="4" /> <!-- 0x1eaf / 0x0004: Leaflabs Maple -->
<usb-device vendor-id="3368" product-id="516" /> <!-- 0x0d28 / 0x0204: ARM mbed -->
<usb-device vendor-id="1155" product-id="22336" /><!-- 0x0483 / 0x5740: ST CDC -->
<usb-device vendor-id="11914" product-id="5" /> <!-- 0x2E8A: Raspberry Pi Pico -->
<usb-device vendor-id="11914" product-id="5" /> <!-- 0x2E8A: Raspberry Pi Pico Micropython -->
</resources>

View File

@ -323,7 +323,7 @@ public class CdcAcmSerialDriver implements UsbSerialDriver {
});
supportedDevices.put(UsbId.VENDOR_RASPBERRY_PI,
new int[] {
UsbId.RASPBERRY_PI_PICO,
UsbId.RASPBERRY_PI_PICO_MICROPYTHON,
});
return supportedDevices;
}

View File

@ -70,7 +70,7 @@ public final class UsbId {
public static final int ST_CDC = 0x5740;
public static final int VENDOR_RASPBERRY_PI = 0x2e8a;
public static final int RASPBERRY_PI_PICO = 0x0005;
public static final int RASPBERRY_PI_PICO_MICROPYTHON = 0x0005;
private UsbId() {
throw new IllegalAccessError("Non-instantiable class");