From 7aceb7f1be45ad110ff57cb89faecafe1754f205 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期五, 11 四月 2025 16:21:45 +0800
Subject: [PATCH] 1

---
 src/main/java/com/zy/core/ServerBootstrap.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index 73cd386..5461319 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -128,21 +128,15 @@
                 throw new CoolException("鏈煡鐨勭嚎绋嬪疄鐜�");
             }
             new Thread(thread).start();
-            SlaveConnection.put(SlaveType.Shuttle, devpSlave.getId(), thread);
+            SlaveConnection.put(SlaveType.Devp, devpSlave.getId(), thread);
         }
 
         // 鍒濆鍖栫數瑙嗘満
         for (LedSlave ledSlave : slaveProperties.getLed()) {
             News.info("鍒濆鍖栫數瑙嗘満......................................................");
-            ThreadHandler thread = null;
-            if (ledSlave.getThreadImpl().equals("NormalLedThread")) {
-                thread = new NormalLedThread(ledSlave);
-            } else {
-                throw new CoolException("鏈煡鐨勭嚎绋嬪疄鐜�");
-            }
-
+            ThreadHandler thread = new NormalLedThread(ledSlave);
             new Thread(thread).start();
-            SlaveConnection.put(SlaveType.Shuttle, ledSlave.getId(), thread);
+            SlaveConnection.put(SlaveType.Led, ledSlave.getId(), thread);
         }
     }
 

--
Gitblit v1.9.1