kopia lustrzana https://github.com/felHR85/UsbSerial
Return when put byte array is empty or null
rodzic
0a4d47f409
commit
42e8e772e0
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue