From ecd10e09a6d85b77204814b813c62691a9deec39 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期五, 06 六月 2025 17:58:14 +0800
Subject: [PATCH] 1. 通过文件读取多个设备的信号,并显示在界面

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

diff --git a/SourceCode/Bond/Servo/CWriteStep.cpp b/SourceCode/Bond/Servo/CWriteStep.cpp
index ba18a5c..0470421 100644
--- a/SourceCode/Bond/Servo/CWriteStep.cpp
+++ b/SourceCode/Bond/Servo/CWriteStep.cpp
@@ -141,10 +141,11 @@
 		CStep::getAttributeVector(attrubutes);
 		std::string temp;
 
+		unsigned int weight = 20;
 		attrubutes.addAttribute(new CAttribute("Current Step",
-			std::to_string(m_nCurStep).c_str(), ""));
+			std::to_string(m_nCurStep).c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Signal Dev",
-			("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), ""));
+			("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), "", weight++));
 	}
 
 	void CWriteStep::init()

--
Gitblit v1.9.3