From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:25:59 +0800 Subject: [PATCH] 2024年07月25日17:24:45 --- HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs index 51f0282..a9e30ac 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs @@ -100,7 +100,7 @@ FrameLayout controlView = new FrameLayout() { Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealHeight(88), + Y = Application.GetRealHeight(88 + 10), Width = Application.GetRealWidth(327), Height = Application.GetRealHeight(526), BackgroundImagePath = "Public/Fragmentbg.png", @@ -455,11 +455,12 @@ new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(function, actionRefresh); new System.Threading.Thread(() => { - DriverLayer.Control.Ins.SendReadCommand(function); + Control.Ins.SendReadCommand(function); }) { IsBackground = true }.Start(); - new System.Threading.Thread(() => { + new System.Threading.Thread(() => + { while (true) { System.Threading.Thread.Sleep(1000); @@ -473,7 +474,8 @@ } else { - DriverLayer.Control.Ins.SendReadCommand(function); + System.Threading.Thread.Sleep(1000); + Control.Ins.SendReadCommand(function); curDimmerStatus = true; } } -- Gitblit v1.8.0