From 0cefcbdbd1bcd8db3f4048926adaca7a0bc9e1bf Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <xltys1995> Date: 星期日, 27 九月 2020 16:24:34 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/LedThread.java | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java index dd079cc..3b9d7e5 100644 --- a/src/main/java/com/zy/core/thread/LedThread.java +++ b/src/main/java/com/zy/core/thread/LedThread.java @@ -45,10 +45,6 @@ Bx5GEnv.initial(3000); screen = new Bx5GScreenClient("my"); screen.turnOn(); - pf = new ProgramBxFile( 0, screen.getProfile()); - pf.setFrameShow(false); - // 鍒嗗埆杈撳叆X锛孻锛寃idth锛宧eight - area = new TextCaptionBxArea( 0,0,192,128,screen.getProfile()); } catch (Exception e) { e.printStackTrace(); log.info("led杩炴帴鏋勯�犲櫒閿欒 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort()); @@ -106,6 +102,10 @@ private void write(List<LedCommand> list) throws Bx5GException { + pf = new ProgramBxFile( 0, screen.getProfile()); + pf.setFrameShow(false); + // 鍒嗗埆杈撳叆X锛孻锛寃idth锛宧eight + area = new TextCaptionBxArea( 0,0,192,128,screen.getProfile()); // 鍒涘缓涓�涓暟鎹〉 TextBxPage page = new TextBxPage(); for (LedCommand command : list) { @@ -134,6 +134,10 @@ private void reset() throws Bx5GException { if (!resetStatus) { + pf = new ProgramBxFile( 0, screen.getProfile()); + pf.setFrameShow(false); + // 鍒嗗埆杈撳叆X锛孻锛寃idth锛宧eight + area = new TextCaptionBxArea( 0,0,192,128,screen.getProfile()); // 鍒涘缓涓�涓暟鎹〉 TextBxPage page = new TextBxPage(); page.newLine("骞垮痉涓壃鐗╂祦瑁呭鏈夐檺鍏徃"); -- Gitblit v1.9.1