kopia lustrzana https://github.com/felHR85/UsbSerial
Read from beginnning of buffer not from positon, that was giving me terrible headaches
rodzic
6102f847fa
commit
ecb9d798f9
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -76,6 +76,7 @@ public class SerialBuffer
|
|||
synchronized(mReadLock)
|
||||
{
|
||||
byte[] dst = new byte[readBuffer.position()];
|
||||
readBuffer.position(0);
|
||||
readBuffer.get(dst, 0, dst.length);
|
||||
return dst;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue