From d7fbb147a1582e93c3028d8328b2e7eb3736d6e9 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期四, 08 一月 2026 20:07:42 +0800
Subject: [PATCH] 1.本地控件状态改变后上报EAP

---
 SourceCode/Bond/Servo/Model.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/Model.cpp b/SourceCode/Bond/Servo/Model.cpp
index f267b26..bb5d5ff 100644
--- a/SourceCode/Bond/Servo/Model.cpp
+++ b/SourceCode/Bond/Servo/Model.cpp
@@ -41,6 +41,12 @@
 
 	// Always keep SV in sync (even if state didn't change or variables were just loaded).
 	m_hsmsPassive.setVariableValue("CurrentControlState", (__int64)static_cast<uint8_t>(m_currentControlState));
+
+	if (newState != prev) {
+		// S6F11 (CEID=600): ControlStateChanged
+		m_hsmsPassive.requestEventReportSend("ControlStateChanged");
+		notifyInt(RX_CODE_CONTROL_STATE_CHANGED, static_cast<int>(m_currentControlState));
+	}
 }
 
 IObservable* CModel::getObservable()

--
Gitblit v1.9.3