Skip to content

Commit

Permalink
Add clearDTR hint about usage to avoid Arduino resets
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Nov 6, 2023
1 parent 4da4af7 commit 064b553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/fazecast/jSerialComm/SerialPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,10 @@ public final boolean setDTR()

/**
* Clears the state of the DTR line to 0.
* <p>
* If you call this function <i>before</i> opening your port, it may help to mitigate a known problem with Arduino-based
* devices resetting themselves upon a connection being made.
*
* @return true if successful, false if not.
*/
public final boolean clearDTR()
Expand Down

0 comments on commit 064b553

Please sign in to comment.