1
0
mirror of https://github.com/mik3y/usb-serial-for-android.git synced 2026-08-11 16:32:53 +00:00

coverage for PL2303 variants

This commit is contained in:
kai-morich
2021-08-17 17:59:11 +02:00
parent 1661535d6b
commit 12095f6b94
4 changed files with 12 additions and 13 deletions
@@ -359,7 +359,7 @@ public class DeviceTest {
doReadWrite(String.valueOf(baudRate + 1) + " + 1<<29", readWait);
}
// some PL2303... data sheets mention additional baud rates, others don't
// some PL2303... data sheets mention additional standard baud rates, others don't
// they do not work with my devices and linux driver also excludes them
baudRates = new int[]{110, 56000, 256000};
for(int baudRate : baudRates) {
@@ -373,7 +373,7 @@ public class DeviceTest {
// silent fallback to 9600 for unsupported baud rates
telnet.setParameters(9600, 8, 1, UsbSerialPort.PARITY_NONE);
usb.setParameters(baudRate + (1<<29), 8, 1, UsbSerialPort.PARITY_NONE);
doReadWrite(String.valueOf(baudRate ) + " + 1<<29", readWait);
doReadWrite(String.valueOf(baudRate) + " + 1<<29", readWait);
}
}