diff --git a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/CommonUsbSerialPort.java b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/CommonUsbSerialPort.java index fb601b07..fba4966d 100644 --- a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/CommonUsbSerialPort.java +++ b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/CommonUsbSerialPort.java @@ -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 diff --git a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/util/SerialInputOutputManager.java b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/util/SerialInputOutputManager.java index 8e11e923..490b8d62 100644 --- a/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/util/SerialInputOutputManager.java +++ b/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/util/SerialInputOutputManager.java @@ -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; /** @@ -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'