From f2ec2ff2640e8f02507e6fa44cd1ba1487a303ea Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 21 二月 2025 09:15:43 +0800
Subject: [PATCH] 1.定义派生于CStep的类CEqModeStep,用于处理设备模式改变的事件。

---
 SourceCode/Bond/Servo/CEquipment.cpp |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEquipment.cpp b/SourceCode/Bond/Servo/CEquipment.cpp
index fcc8002..b435ca9 100644
--- a/SourceCode/Bond/Servo/CEquipment.cpp
+++ b/SourceCode/Bond/Servo/CEquipment.cpp
@@ -67,12 +67,8 @@
 
 	void CEquipment::init()
 	{
-		CStep* pStep = new CStep();
-		if (addStep(0x360, pStep) == 0) {
-			pStep->init();
-		}
-		else {
-			delete pStep;
+		for (auto item : m_mapStep) {
+			item.second->init();
 		}
 	}
 

--
Gitblit v1.9.3