移除dch ch1切换逻辑并删除通用升级程序
- 查询当前配置直接发送para,不再预先发送dch ch1并等待切换回应 - 删除已不再使用的通用升级程序.exe(升级功能已集成到软件内)
This commit is contained in:
@@ -344,11 +344,6 @@ class LaserTracingConfigApp:
|
||||
|
||||
def _on_data_received(self, text):
|
||||
self._log(text, "recv", newline=False)
|
||||
# 等待 dch ch1 切换完成后再发送 para
|
||||
if getattr(self, "_pending_dch", False) and "Debug channel switched to RS485_1" in self.recv_buffer:
|
||||
self._pending_dch = False
|
||||
self._send_command("para")
|
||||
return
|
||||
# 收到完整para回应:起始与结束各出现一次分隔符(****)后才解析
|
||||
marker = "**********************************************************"
|
||||
if self.recv_buffer.count(marker) >= 2:
|
||||
@@ -375,8 +370,7 @@ class LaserTracingConfigApp:
|
||||
# ─────────────────── 指令发送 ───────────────────
|
||||
|
||||
def _send_para(self):
|
||||
self._pending_dch = True
|
||||
self._send_command("dch ch1")
|
||||
self._send_command("para")
|
||||
|
||||
def _launch_upgrade(self):
|
||||
"""打开设备升级对话框。复用当前已连接的串口,不断开连接。"""
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user