Skip to content

Commit 2673407

Browse files
authored
UsbSerialPort Documentation Fixes (#608)
1 parent 8584fe4 commit 2673407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbSerialPort.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ enum FlowControl { NONE, RTS_CTS, DTR_DSR, XON_XOFF, XON_XOFF_INLINE }
175175
* @param parity one of {@link #PARITY_NONE}, {@link #PARITY_ODD},
176176
* {@link #PARITY_EVEN}, {@link #PARITY_MARK}, or {@link #PARITY_SPACE}.
177177
* @throws IOException on error setting the port parameters
178-
* @throws UnsupportedOperationException if values are not supported by a specific device
178+
* @throws UnsupportedOperationException if not supported or values are not supported by a specific device
179179
*/
180180
void setParameters(int baudRate, int dataBits, int stopBits, @Parity int parity) throws IOException;
181181

@@ -257,6 +257,7 @@ enum FlowControl { NONE, RTS_CTS, DTR_DSR, XON_XOFF, XON_XOFF_INLINE }
257257
*
258258
* @return EnumSet.contains(...) is {@code true} if set, else {@code false}
259259
* @throws IOException if an error occurred during reading
260+
* @throws UnsupportedOperationException if not supported
260261
*/
261262
EnumSet<ControlLine> getControlLines() throws IOException;
262263

0 commit comments

Comments
 (0)