From 0aeffdc509f6c25998bf7c54c64118ea62608d9d Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 23 十二月 2020 17:48:26 +0800
Subject: [PATCH] 2020-12-23-5

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
index 313505d..d786536 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs
@@ -179,8 +179,9 @@
         {
             List<HDL_ON.Entity.Function> deviceLists = new List<Entity.Function>();
             List<HDL_ON.Entity.Function> lists = GetGatewayDeviceList();
-            foreach (var dev in lists)
+            for (int i = 0; i < lists.Count; i++)
             {
+                var dev = lists[i];
                 if (dev.roomIds.Find((id) => id == room.uid) != null)
                 {
                     deviceLists.Add(dev);

--
Gitblit v1.8.0