From c3d188e6c595dcf1f11e105757521e405dcb648b Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 23 六月 2025 11:46:12 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang
---
SourceCode/Bond/Servo/CLoadPort.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/SourceCode/Bond/Servo/CLoadPort.cpp b/SourceCode/Bond/Servo/CLoadPort.cpp
index d2366f1..e5aa69b 100644
--- a/SourceCode/Bond/Servo/CLoadPort.cpp
+++ b/SourceCode/Bond/Servo/CLoadPort.cpp
@@ -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