From 31aa10eaae103c30e02d7dc6c71ff4e50de361b3 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 12 五月 2025 15:28:32 +0800
Subject: [PATCH] 1. 修改报警的显示模式(包括日志,需要后期修复) 2. 添加Release模式编译

---
 SourceCode/Bond/Servo/CPageGraph2.cpp |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGraph2.cpp b/SourceCode/Bond/Servo/CPageGraph2.cpp
index 4d81345..ffc169d 100644
--- a/SourceCode/Bond/Servo/CPageGraph2.cpp
+++ b/SourceCode/Bond/Servo/CPageGraph2.cpp
@@ -176,8 +176,10 @@
 				}
 			}
 			*/
+
+
 			// 娴嬭瘯娓呴櫎Cim Message
-			
+			/*
 			if (pEquipment->getID() == EQ_ID_Bonder1
 				|| pEquipment->getID() == EQ_ID_Bonder2) {
 				static int msgId = 0; msgId++;
@@ -188,7 +190,7 @@
 					pEquipment->clearCimMessage(msgId, 2);
 				}
 			}
-			
+			*/
 
 			// 娴嬭瘯璁剧疆鏃堕棿
 			/*
@@ -221,8 +223,8 @@
 				pEquipment->setEqMode((ii % 5) + 1);
 			}
 			*/
+
 			/*
-			SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
 			SERVO::CGlass* pGlass = pEquipment->getFrontGlass();
 			if (pGlass != nullptr) {
 				std::string strDescription;
@@ -234,6 +236,12 @@
 				}
 			}
 			*/
+
+
+			// 璇锋眰涓婚厤鏂瑰垪琛�
+			if (pEquipment != nullptr) {
+				pEquipment->masterRecipeListRequest(0);
+			}			
 		}
 
 
@@ -350,6 +358,9 @@
 	std::list<SERVO::CEquipment*>& eqs = theApp.m_model.m_master.getEquipmentList();
 	for (auto item : eqs) {
 		EQITEM* pEqItem = m_pEqsGraphWnd->GetItem((DWORD_PTR)item);
+		if (nullptr == pEqItem) {
+			continue;
+		}
 
 		strValue.Format(_T("%d"), pEqItem->rect.left);
 		WritePrivateProfileString(item->getName().c_str(), _T("Left"),

--
Gitblit v1.9.3