- return null if no packet received

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@93 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
schlaepfer
2006-01-18 15:16:34 +00:00
parent 51e9d8c51a
commit ef2ab385d4

View File

@@ -61,6 +61,9 @@ public class Uart0 {
DataPacket packet;
try {
packet = Dispatch.readUART();
if (packet == null) {
return null;
}
return packet.data;
} catch (Exception e) {
return null;