Skip to content

Commit

Permalink
Tune timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
sh123 committed Nov 17, 2023
1 parent 9886bcc commit df80a98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class AppWorker extends Thread {
private static final int AUDIO_MAX_LEVEL = 0;
private static final int AUDIO_SAMPLE_SIZE = 8000;

private static final int PROCESS_INTERVAL_MS = 20;
private static final int PROCESS_INTERVAL_MS = 10;
private static final int LISTEN_AFTER_MS = 1500;

private boolean _needTransmission = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class UsbSerial implements Transport {

private static final int RX_TIMEOUT = 10;
private static final int RX_TIMEOUT = 5;
private static final int TX_TIMEOUT = 2000;

private final UsbSerialPort _usbPort;
Expand Down

0 comments on commit df80a98

Please sign in to comment.