Return when put byte array is empty or null

pull/137/head
Henry Addo 2018-01-04 03:14:02 +01:00
rodzic 0a4d47f409
commit 42e8e772e0
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -118,6 +118,7 @@ public class SerialBuffer
public synchronized void put(byte[] src)
{
if(src == null || src.length == 0) return;
if(position == -1)
position = 0;
if(debugging)