Read from beginnning of buffer not from positon, that was giving me terrible headaches

pull/4/head
Felipe Herranz 2014-04-09 17:30:59 +02:00
rodzic 6102f847fa
commit ecb9d798f9
3 zmienionych plików z 1 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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;
}