From 8f8eed75beb5bb9b66f2a87de856f2dbf11e6ffe Mon Sep 17 00:00:00 2001
From: 张世豪 <979909237@qq.com>
Date: 星期四, 20 十一月 2025 20:29:36 +0800
Subject: [PATCH] 修改

---
 src/xitongshezhi/SystemDebugDialog.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/chuankou/SystemDebugDialog.java b/src/xitongshezhi/SystemDebugDialog.java
similarity index 98%
rename from src/chuankou/SystemDebugDialog.java
rename to src/xitongshezhi/SystemDebugDialog.java
index 901f2b7..0da3321 100644
--- a/src/chuankou/SystemDebugDialog.java
+++ b/src/xitongshezhi/SystemDebugDialog.java
@@ -1,7 +1,11 @@
-package chuankou;
+package xitongshezhi;
 
 import javax.swing.*;
 import javax.swing.border.EmptyBorder;
+
+import chuankou.Sendmsg;
+import chuankou.SerialPortService;
+
 import java.awt.*;
 import java.text.SimpleDateFormat;
 import java.util.Date;
@@ -102,7 +106,7 @@
         
         // 鍏抽棴鎸夐挳
         JButton closeButton = new JButton("鍏抽棴");
-        closeButton.setFont(new Font("Microsoft YaHei", Font.PLAIN, 14));
+        closeButton.setFont(new Font("瀹嬩綋", Font.PLAIN, 12));
         closeButton.setBackground(DANGER_COLOR);
         closeButton.setForeground(Color.WHITE);
         closeButton.setFocusPainted(false);
@@ -347,10 +351,12 @@
                 pollingButton.setText("鍚姩鏌ヨ");
                 pollingButton.setBackground(SECONDARY_COLOR);
                 onDataReceivedascii("[" + getCurrentTime() + "] stop\n");
+                lunxun.setDEBUG_ENABLED(false);
             }
         } else {
             // 濡傛灉鏈疆璇紝鍒欏惎鍔�
             if (lunxun.startPolling()) {
+            	lunxun.setDEBUG_ENABLED(true);
                 pollingButton.setText("鍋滄鏌ヨ");
                 pollingButton.setBackground(DANGER_COLOR);
                 onDataReceivedascii("[" + getCurrentTime() + "] strat\n");

--
Gitblit v1.9.3