Skip to content

Commit

Permalink
Added comments for flow control options
Browse files Browse the repository at this point in the history
  • Loading branch information
felHR85 committed Feb 13, 2016
1 parent a050e14 commit c826e45
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ public void run() {
serialPort.setDataBits(UsbSerialInterface.DATA_BITS_8);
serialPort.setStopBits(UsbSerialInterface.STOP_BITS_1);
serialPort.setParity(UsbSerialInterface.PARITY_NONE);
/**
* Flow control Options:
* UsbSerialInterface.FLOW_CONTROL_OFF
* UsbSerialInterface.FLOW_CONTROL_RTS_CTS for CP2102 and FT232
* UsbSerialInterface.FLOW_CONTROL_DSR_DTR for CP2102 and FT232
*/
serialPort.setFlowControl(UsbSerialInterface.FLOW_CONTROL_OFF);
serialPort.read(mCallback);
serialPort.getCTS(ctsCallback);
Expand Down

0 comments on commit c826e45

Please sign in to comment.