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

IntDef Parity for better warnings

but no @Intdef for databits, stopbits as these are frequently used with numbers instead of constants
remove redundant modifiers
This commit is contained in:
kai-morich
2021-01-16 22:17:34 +01:00
parent 5519182256
commit fc610a9764
13 changed files with 60 additions and 74 deletions
@@ -226,7 +226,7 @@ public class TerminalFragment extends Fragment implements SerialInputOutputManag
try {
usbSerialPort.open(usbConnection);
usbSerialPort.setParameters(baudRate, 8, UsbSerialPort.STOPBITS_1, UsbSerialPort.PARITY_NONE);
usbSerialPort.setParameters(baudRate, 8, 1, UsbSerialPort.PARITY_NONE);
if(withIoManager) {
usbIoManager = new SerialInputOutputManager(usbSerialPort, this);
Executors.newSingleThreadExecutor().submit(usbIoManager);