From f16e7e4df7e7813e4a3052dae752aae3e6937b30 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 08 七月 2022 16:53:12 +0800
Subject: [PATCH] 自研可视对讲、毫米波

---
 HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs
index 55bc4b3..c724edb 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPageBLL.cs
@@ -104,10 +104,10 @@
                     function.SetAttrState(FunctionAttributeKey.Brightness, dimmerBar.Progress);
                     System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                     d.Add(FunctionAttributeKey.Brightness, dimmerBar.Progress.ToString());
-                    if(dimmerBar.Progress > 0)
-                    {
-                        d.Add(FunctionAttributeKey.OnOff, "on");
-                    }
+                    //if(dimmerBar.Progress > 0)
+                    //{
+                    //    d.Add(FunctionAttributeKey.OnOff, "on");
+                    //}
                     Control.Ins.SendWriteCommand(function, d);
                     btnBrightnessText.Text = dimmerBar.Progress + "%";
                 };
@@ -131,7 +131,7 @@
                     }
                     else
                     {
-                        if (500 < (DateTime.Now - function.refreshTime).TotalMilliseconds)
+                        if (350 < (DateTime.Now - function.refreshTime).TotalMilliseconds)
                         {
                             function.refreshTime = DateTime.Now;
                             new System.Threading.Thread(() =>

--
Gitblit v1.8.0