From 26040a05a66227a59259d83d95f654030eb210d8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期六, 14 十一月 2020 15:06:59 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/BarcodeThread.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/core/thread/BarcodeThread.java b/src/main/java/com/zy/core/thread/BarcodeThread.java index 7c613d7..cd3848b 100644 --- a/src/main/java/com/zy/core/thread/BarcodeThread.java +++ b/src/main/java/com/zy/core/thread/BarcodeThread.java @@ -38,7 +38,7 @@ while (true) { try { write("T".getBytes(), "T".length()); - byte[] read = read(11, 1000); + byte[] read = read(11, 5); if (null != read) { barcode = new String(read); } @@ -142,7 +142,7 @@ boolean connect = barcodeThread.connect(); System.out.println(connect); barcodeThread.write("T".getBytes(), "T".length()); - byte[] read = barcodeThread.read(11, 1000); + byte[] read = barcodeThread.read(11, 1); System.out.println(new String(read)); } } -- Gitblit v1.9.1