Update version numbers

This commit is contained in:
hedgecrw85 2020-01-03 12:48:04 -06:00
parent 490bcf067f
commit 3da47be0f1
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ apply plugin: 'osgi'
group = 'com.fazecast'
archivesBaseName = 'jSerialComm'
version = '2.5.3'
version = '2.5.4'
ext.moduleName = 'com.fazecast.jSerialComm'
assert hasProperty('java6Home'): "Set the property 'java6Home' in your gradle.properties file pointing to a Java 6 JDK installation"

View File

@ -186,6 +186,7 @@ public class SerialPortTest
public void serialEvent(SerialPortEvent event)
{
SerialPort comPort = event.getSerialPort();
System.out.println("Available: " + comPort.bytesAvailable() + " bytes.");
byte[] newData = new byte[comPort.bytesAvailable()];
int numRead = comPort.readBytes(newData, newData.length);
System.out.println("Read " + numRead + " bytes.");