From 646e866838eeb8cbee25a500b378467e80d32b1f Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 30 六月 2022 10:27:39 +0800 Subject: [PATCH] 1 --- 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 519aec2..f8bcb69 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