From 7e94d0d0dcb7eae298d0bbb4221c970037448c9f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 02 十一月 2023 16:22:52 +0800
Subject: [PATCH] 修复首次登录mqtt无法订阅的问题

---
 HDL_ON/Entity/FunctionList.cs |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs
index f6aad52..919bfe1 100644
--- a/HDL_ON/Entity/FunctionList.cs
+++ b/HDL_ON/Entity/FunctionList.cs
@@ -185,6 +185,16 @@
         }
 
         /// <summary>
+        /// 鑾峰彇褰遍煶涓帶鍒楄〃
+        /// </summary>
+        /// <returns></returns>
+        public List<Function> GetVideoControlsList()
+        {
+            var spkList = SPK.GetVideoControlsSPKList();
+            return Functions.FindAll((obj) => spkList.Contains(obj.spk));
+        }
+
+        /// <summary>
         /// 鏂伴鍒楄〃
         /// </summary>
         /// <returns></returns>
@@ -218,7 +228,7 @@
         /// </summary>
         public List<Function> GetElectricals()
         {
-            var spkList = SPK.ElectricalSpkList();
+        var spkList = SPK.ElectricalSpkList();
             return Functions.FindAll((obj) => spkList.Contains(obj.spk));
         }
     

--
Gitblit v1.8.0