1
0
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:
Kai Morich
2019-10-26 21:32:28 +02:00
parent 800381e370
commit b3631dff58
4 changed files with 152 additions and 106 deletions
@@ -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;
}