From b271bcceb1c4e718377ca86b6213816abcf7482a Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 11 一月 2021 13:57:18 +0800
Subject: [PATCH] 20210111-删除功能类别,统一使用spk去设备功能

---
 HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs
index 26276ea..03b6752 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPageBLL.cs
@@ -12,13 +12,13 @@
         /// </summary>
         public static void UpdataStates(Light uFunction)
         {
-            Application.RunOnMainThread(() =>
+            Application.RunOnMainThread((Action)(() =>
             {
                 try
                 {
                     if (bodyView == null)
                         return;
-                    if (uFunction.functionType == bodyView.light.functionType && uFunction.sid == bodyView.light.sid)
+                    if (uFunction.spk == bodyView.light.spk && uFunction.sid == bodyView.light.sid)
                     {
                         if (uFunction.trait_on_off.curValue.ToString() == "on")
                         {
@@ -48,7 +48,7 @@
                 {
                     MainPage.Log($"{bodyView.GetType().Name } UpdataStates error : {ex.Message}");
                 }
-            });
+            }));
         }
 
         void LoadEventList()

--
Gitblit v1.8.0