From b5444e6e566c2128bcb4fb522bfa636ee2c5b8fb Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 25 八月 2022 15:37:18 +0800
Subject: [PATCH] 场景背景图问题修复

---
 HDL_ON/Entity/FunctionList.cs |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs
index 9b724ca..9dce20e 100644
--- a/HDL_ON/Entity/FunctionList.cs
+++ b/HDL_ON/Entity/FunctionList.cs
@@ -24,7 +24,11 @@
                     var filePathList = FileUtlis.Files.ReadFiles();
                     foreach (var filePath in filePathList)
                     {
-                        _FunctionList.IniFunctionList(filePath);
+                        try
+                        {
+                            _FunctionList.IniFunctionList(filePath);
+                        }
+                        catch { }
                     }
                     #endregion
                 }
@@ -85,15 +89,6 @@
         public List<Function> GetAirFreshList()
         {
             var spkList = SPK.AirFreshSpkList();
-            return Functions.FindAll((obj) => spkList.Contains(obj.spk));
-        }
-        /// <summary>
-        /// 闈㈡澘鍒楄〃
-        /// </summary>
-        /// <returns></returns>
-        public List<Function> GetPanelList()
-        {
-            var spkList = SPK.PanelSpkList();
             return Functions.FindAll((obj) => spkList.Contains(obj.spk));
         }
 
@@ -480,6 +475,7 @@
                             if (readList.Count > 9)
                             {
                                 Control.Ins.SendReadCommand(readList);
+                                readList.Clear();
                             }
                         }
                         if (readList.Count > 0)

--
Gitblit v1.8.0