From 2673407f1d3712e28ce11351b181ef14def08d16 Mon Sep 17 00:00:00 2001 From: Holden <68555040+HTRamsey@users.noreply.github.com> Date: Sat, 9 Nov 2024 04:42:55 -0500 Subject: [PATCH] UsbSerialPort Documentation Fixes (#608) --- .../java/com/hoho/android/usbserial/driver/UsbSerialPort.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbSerialPort.java b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbSerialPort.java index 57f68c09..ebf96df5 100644 --- a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbSerialPort.java +++ b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbSerialPort.java @@ -175,7 +175,7 @@ enum FlowControl { NONE, RTS_CTS, DTR_DSR, XON_XOFF, XON_XOFF_INLINE } * @param parity one of {@link #PARITY_NONE}, {@link #PARITY_ODD}, * {@link #PARITY_EVEN}, {@link #PARITY_MARK}, or {@link #PARITY_SPACE}. * @throws IOException on error setting the port parameters - * @throws UnsupportedOperationException if values are not supported by a specific device + * @throws UnsupportedOperationException if not supported or values are not supported by a specific device */ void setParameters(int baudRate, int dataBits, int stopBits, @Parity int parity) throws IOException; @@ -257,6 +257,7 @@ enum FlowControl { NONE, RTS_CTS, DTR_DSR, XON_XOFF, XON_XOFF_INLINE } * * @return EnumSet.contains(...) is {@code true} if set, else {@code false} * @throws IOException if an error occurred during reading + * @throws UnsupportedOperationException if not supported */ EnumSet getControlLines() throws IOException;