Skip to content

Commit

Permalink
reordered public members
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-morich committed Sep 26, 2021
1 parent 76f9198 commit bdfb7d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
*/
public abstract class CommonUsbSerialPort implements UsbSerialPort {

private static final String TAG = CommonUsbSerialPort.class.getSimpleName();
public static boolean DEBUG = false;

private static final String TAG = CommonUsbSerialPort.class.getSimpleName();
private static final int DEFAULT_WRITE_BUFFER_SIZE = 16 * 1024;
private static final int MAX_READ_SIZE = 16 * 1024; // = old bulkTransfer limit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@
*/
public class SerialInputOutputManager implements Runnable {

private static final String TAG = SerialInputOutputManager.class.getSimpleName();
public enum State {
STOPPED,
RUNNING,
STOPPING
}

public static boolean DEBUG = false;

private static final String TAG = SerialInputOutputManager.class.getSimpleName();
private static final int BUFSIZ = 4096;

/**
Expand All @@ -37,12 +44,6 @@ public class SerialInputOutputManager implements Runnable {
private ByteBuffer mReadBuffer; // default size = getReadEndpoint().getMaxPacketSize()
private ByteBuffer mWriteBuffer = ByteBuffer.allocate(BUFSIZ);

public enum State {
STOPPED,
RUNNING,
STOPPING
}

private int mThreadPriority = Process.THREAD_PRIORITY_URGENT_AUDIO;
private State mState = State.STOPPED; // Synchronized by 'this'
private Listener mListener; // Synchronized by 'this'
Expand Down

0 comments on commit bdfb7d5

Please sign in to comment.