From d2df50ab05a9d9a85a4b735786fe3f2b6e00186e Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期一, 26 一月 2026 22:19:17 +0800
Subject: [PATCH] 1.已把空指针和防护都补上了:创建消息失败直接返回并删除 action;spooling/发送/序列化都会跳过空消息并记录错误,避免再因 m_pSendMessage 为空导致崩溃或写出坏缓存。

---
 SourceCode/Bond/Servo/ServoDlg.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h
index aa16b76..e05c9e5 100644
--- a/SourceCode/Bond/Servo/ServoDlg.h
+++ b/SourceCode/Bond/Servo/ServoDlg.h
@@ -38,6 +38,7 @@
 
 public:
 	void ShowTerminalText(const char* pszText, unsigned int duration = -1);
+	void AckAlarm(int alarmId);
 
 private:
 	void InitRxWindows();
@@ -123,6 +124,10 @@
 	afx_msg void OnUpdateMenuTestMessageClear(CCmdUI* pCmdUI);
 	afx_msg void OnMenuToolsClientList();
 	afx_msg void OnUpdateMenuToolsClientList(CCmdUI* pCmdUI);
+	afx_msg void OnMenuToolsCurveEmptyMode();
+	afx_msg void OnUpdateMenuToolsCurveEmptyMode(CCmdUI* pCmdUI);
+	afx_msg void OnMenuToolsCurveProductionMode();
+	afx_msg void OnUpdateMenuToolsCurveProductionMode(CCmdUI* pCmdUI);
 	afx_msg void OnMenuWndTestPanel();
 	afx_msg void OnUpdateMenuWndTestPanel(CCmdUI* pCmdUI);
 	afx_msg void OnMenuWndProPanel();

--
Gitblit v1.9.3