From 0b32b5ca45370256da5bbfa8ca43014890258997 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期六, 10 五月 2025 15:58:45 +0800
Subject: [PATCH] 1.修复storeJob为storedJob

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

diff --git a/SourceCode/Bond/Servo/CPageGraph2.cpp b/SourceCode/Bond/Servo/CPageGraph2.cpp
index 3a7d3bf..6ef9a57 100644
--- a/SourceCode/Bond/Servo/CPageGraph2.cpp
+++ b/SourceCode/Bond/Servo/CPageGraph2.cpp
@@ -83,6 +83,7 @@
 BOOL CPageGraph2::OnInitDialog()
 {
 	CDialogEx::OnInitDialog();
+	InitRxWindows();
 	SetTimer(1, 2000, nullptr);
 
 
@@ -196,7 +197,7 @@
 		}
 		else if (nCmd == ID_EQSGRAPHITEM_TEST2) {
 			SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
-			pEquipment->storeJob("P20250320A1A2");
+			pEquipment->storedJob("P20250320A1A2");
 		}
 		else if (nCmd == ID_EQSGRAPHITEM_TEST3) {
 			SERVO::CEquipment* pEquipment = (SERVO::CEquipment*)pItem->pData;
@@ -375,7 +376,6 @@
 void CPageGraph2::OnTimer(UINT_PTR nIDEvent)
 {
 	if (1 == nIDEvent) {
-		InitRxWindows();
 		KillTimer(1);
 		std::list<SERVO::CEquipment*>& eqs = theApp.m_model.m_master.getEquipmentList();
 		for (auto eq : eqs) {
@@ -404,6 +404,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