From 8f84a1ffebfa0e44d1b6f3eac7257e5fd282b8af Mon Sep 17 00:00:00 2001
From: darker <mr.darker@163.com>
Date: 星期五, 21 二月 2025 11:58:03 +0800
Subject: [PATCH] 1. 添加报警的界面对应的类

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

diff --git a/SourceCode/Bond/Servo/ServoDlg.h b/SourceCode/Bond/Servo/ServoDlg.h
index 596cf77..88ed43d 100644
--- a/SourceCode/Bond/Servo/ServoDlg.h
+++ b/SourceCode/Bond/Servo/ServoDlg.h
@@ -8,6 +8,10 @@
 #include "LogDlg.h"
 #include "TerminalDisplayDlg.h"
 
+enum DeviceStatus {
+	ONLINE,       // 在线
+	OFFLINE,      // 离线
+};
 
 // CServoDlg 对话框
 class CServoDlg : public CDialogEx
@@ -26,6 +30,7 @@
 	void UpdateLogBtn();
 	void UpdateRobotPosition(float percentage);
 	void RotateRobot(float angleInDegrees);
+	void UpdateDeviceStatus(int id, DeviceStatus status);
 
 
 private:
@@ -46,8 +51,6 @@
 
 private:
 	BOOL m_bIsRobotMoving;
-	BOOL m_bShowLogWnd;
-	CLogDlg* m_pLogDlg;
 
 // 实现
 protected:

--
Gitblit v1.9.3