Skip to content

Commit

Permalink
Rever default read timeout: when set to 0 on a serial port can cause …
Browse files Browse the repository at this point in the history
…excessive CPU.
  • Loading branch information
msqr committed Jun 17, 2024
1 parent cc17b71 commit abcc601
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface SerialParameters {
SerialParity DEFAULT_PARITY = SerialParity.None;

/** The default read timeout. */
int DEFAULT_READ_TIMEOUT = 0;
int DEFAULT_READ_TIMEOUT = 1000;

/**
* Get the baud rate.
Expand Down

0 comments on commit abcc601

Please sign in to comment.