Update version numbers
This commit is contained in:
parent
490bcf067f
commit
3da47be0f1
|
@ -5,7 +5,7 @@ apply plugin: 'osgi'
|
||||||
|
|
||||||
group = 'com.fazecast'
|
group = 'com.fazecast'
|
||||||
archivesBaseName = 'jSerialComm'
|
archivesBaseName = 'jSerialComm'
|
||||||
version = '2.5.3'
|
version = '2.5.4'
|
||||||
ext.moduleName = 'com.fazecast.jSerialComm'
|
ext.moduleName = 'com.fazecast.jSerialComm'
|
||||||
|
|
||||||
assert hasProperty('java6Home'): "Set the property 'java6Home' in your gradle.properties file pointing to a Java 6 JDK installation"
|
assert hasProperty('java6Home'): "Set the property 'java6Home' in your gradle.properties file pointing to a Java 6 JDK installation"
|
||||||
|
|
|
@ -186,6 +186,7 @@ public class SerialPortTest
|
||||||
public void serialEvent(SerialPortEvent event)
|
public void serialEvent(SerialPortEvent event)
|
||||||
{
|
{
|
||||||
SerialPort comPort = event.getSerialPort();
|
SerialPort comPort = event.getSerialPort();
|
||||||
|
System.out.println("Available: " + comPort.bytesAvailable() + " bytes.");
|
||||||
byte[] newData = new byte[comPort.bytesAvailable()];
|
byte[] newData = new byte[comPort.bytesAvailable()];
|
||||||
int numRead = comPort.readBytes(newData, newData.length);
|
int numRead = comPort.readBytes(newData, newData.length);
|
||||||
System.out.println("Read " + numRead + " bytes.");
|
System.out.println("Read " + numRead + " bytes.");
|
||||||
|
|
Loading…
Reference in New Issue