From 9b416da4f7f8c884a8aa4fba2c0af9884de0c7c5 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 31 Aug 2017 17:34:49 +0200 Subject: [PATCH] Startup --- plugins/LaserUE.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/LaserUE.java b/plugins/LaserUE.java index bf9d976..734e19d 100644 --- a/plugins/LaserUE.java +++ b/plugins/LaserUE.java @@ -18,6 +18,7 @@ public class LaserUE extends SerialPortDevice{ public LaserUE(String name, String port) { super(name, port, 921600, SerialPortDeviceConfig.DataBits.DB_8, SerialPortDeviceConfig.StopBits.SB_1, SerialPortDeviceConfig.Parity.None); this.setMode(Mode.FullDuplex); + /* System.out.println("XXX"); new Thread(new Runnable() { @@ -26,8 +27,7 @@ public class LaserUE extends SerialPortDevice{ System.out.println("Starting"); while(!isClosed()){ try{ - if (isInitialized()){ - System.out.println("R"); + if (isInitialized()){ int rx; while ((rx = readByte()) >= 0) { onByte((byte) rx); @@ -45,6 +45,7 @@ public class LaserUE extends SerialPortDevice{ System.out.println("Quiting"); } }).start(); +*/ } int value = 0; @@ -59,7 +60,7 @@ public class LaserUE extends SerialPortDevice{ @Override protected void onByte(int rx) { - //System.out.print(rx); + System.out.println(rx); if (rx < 0) { count = 0; } else {