From 317e0862d1a7b708d8040606e3bc9d9f6d79b1aa Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期日, 04 一月 2026 14:11:04 +0800
Subject: [PATCH] 1.LoadPortNotAssoc事件上报的实现;

---
 SourceCode/Bond/Servo/Model.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index aa0f8eb..2ead821 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -471,6 +471,13 @@
 			}
 			m_hsmsPassive.requestEventReportSend_Port_Unload_Ready();
 		}
+		else if (status == PORT_EMPTY) {
+			SERVO::CLoadPort* pLoadPort = dynamic_cast<SERVO::CLoadPort*>(pEquipment);
+			if (pLoadPort != nullptr) {
+				m_hsmsPassive.setVariableValue("LoadPortNotAssocPortId", pLoadPort->getID());
+			}
+			m_hsmsPassive.requestEventReportSend_LoadPortNotAssoc();
+		}
 		notifyPtr(RX_CODE_LOADPORT_STATUS_CHANGED, pEquipment);
 	};
 	masterListener.onCTRoundEnd = [&](void* pMaster, int round) {

--
Gitblit v1.9.3