From 3fa544ff5974dc43f6f674e67c75d5c5a30c45d6 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 31 Aug 2017 17:39:29 +0200 Subject: [PATCH] Closedown --- plugins/LaserUE.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/plugins/LaserUE.java b/plugins/LaserUE.java index 089d5e1..30a6619 100644 --- a/plugins/LaserUE.java +++ b/plugins/LaserUE.java @@ -22,18 +22,14 @@ public class LaserUE extends SerialPortDevice{ int value = 0; int count = 0; - /* - @Override - protected int readByte() throws IOException { - int ret = super.readByte(); - System.out.print(ret); - return ret; - } -*/ + @Override protected void onByte(int rx) { - System.out.println(rx); + if (rx<0){ + rx+=256; + } + System.out.println(rx); int index = ((rx&BIT7) > 0) ? 2 : (((rx&BIT6) > 0) ? 1 : 0); if (count==index){ if (index ==0){