kopia lustrzana https://github.com/mik3y/usb-serial-for-android
Merge pull request #85 from treymarc/patch-1
remove uncessary call to mWriteBuffer.position()pull/92/head
commit
228c7936eb
|
@ -171,8 +171,8 @@ public class SerialInputOutputManager implements Runnable {
|
|||
// Handle outgoing data.
|
||||
byte[] outBuff = null;
|
||||
synchronized (mWriteBuffer) {
|
||||
if (mWriteBuffer.position() > 0) {
|
||||
len = mWriteBuffer.position();
|
||||
len = mWriteBuffer.position();
|
||||
if (len > 0) {
|
||||
outBuff = new byte[len];
|
||||
mWriteBuffer.rewind();
|
||||
mWriteBuffer.get(outBuff, 0, len);
|
||||
|
|
Ładowanie…
Reference in New Issue