From bfc9e3dec34e108e2b4c3d0bfe19c5c16914fdff Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 23 六月 2025 13:46:30 +0800
Subject: [PATCH] 1. 配方管理类添加关键字查询(PPID和描述)

---
 SourceCode/Bond/Servo/CLoadPort.cpp |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/CLoadPort.cpp b/SourceCode/Bond/Servo/CLoadPort.cpp
index 5ac81cb..e5aa69b 100644
--- a/SourceCode/Bond/Servo/CLoadPort.cpp
+++ b/SourceCode/Bond/Servo/CLoadPort.cpp
@@ -300,7 +300,7 @@
 			pStep->setName(pszName[m_nIndex]);
 			pStep->setWriteSignalDev(0x128 + m_nIndex);
 			pStep->setDataDev(dev[m_nIndex]);
-			if (addStep(STEP_ID_PROT1_TYPE_AUTO_CHANGE_REPLY + m_nIndex, pStep) != 0) {
+			if (addStep(STEP_ID_PROT1_CASSETTE_TYPE_CHANGE_REPLY + m_nIndex, pStep) != 0) {
 				delete pStep;
 			}
 		}
@@ -1144,16 +1144,14 @@
 	{
 		char szBuffer[64];
 		for (const auto& slot : config.vecSlot) {
-			if (!slot.isEnabled) continue;
-
 			int nSlotIndex = slot.nSlotID - 1;
 			if (nSlotIndex < 0 || nSlotIndex >= SLOT_MAX) {
 				continue;
 			}
-
-			m_slot[nSlotIndex].enable();
-
-			if (!m_slot[nSlotIndex].isEnable()) continue;
+			if (!slot.isEnabled) {
+				m_slot[nSlotIndex].setContext(nullptr);
+				continue;
+			}
 
 			CJobDataS js;
 			js.setCassetteSequenceNo(getNextCassetteSequenceNo());

--
Gitblit v1.9.3