From f631abac11b6d7c8091ed28b838a5d1f50e24825 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 19 三月 2025 18:03:37 +0800
Subject: [PATCH] 1.把CSample替换为CIntent
---
SourceCode/Bond/Servo/CLoadPort.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/SourceCode/Bond/Servo/CLoadPort.cpp b/SourceCode/Bond/Servo/CLoadPort.cpp
index 6386eec..b455e4f 100644
--- a/SourceCode/Bond/Servo/CLoadPort.cpp
+++ b/SourceCode/Bond/Servo/CLoadPort.cpp
@@ -67,7 +67,9 @@
{
CPin* pOutPin = getPin("Out");
- CSample* pSample = new CSample();
- pOutPin->sendSample(pSample);
+ CIntent intent;
+ intent.setCode(1);
+ intent.setMsg("Hello");
+ pOutPin->sendIntent(&intent);
}
}
--
Gitblit v1.9.3