mirror of
https://github.com/mik3y/usb-serial-for-android.git
synced 2026-08-18 20:03:02 +00:00
README with SerialInputOutputManager for read() and port for write()
test the usually not used read/write variants
This commit is contained in:
+2
-2
@@ -50,7 +50,7 @@ public class SerialInputOutputManager implements Runnable {
|
||||
// Synchronized by 'mWriteBuffer'
|
||||
private final ByteBuffer mWriteBuffer = ByteBuffer.allocate(BUFSIZ);
|
||||
|
||||
private enum State {
|
||||
public enum State {
|
||||
STOPPED,
|
||||
RUNNING,
|
||||
STOPPING
|
||||
@@ -111,7 +111,7 @@ public class SerialInputOutputManager implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized State getState() {
|
||||
public synchronized State getState() {
|
||||
return mState;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user