From 6d3ba9484472d090532434e53667c096652149ce Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 25 九月 2020 09:56:14 +0800 Subject: [PATCH] 202009251 --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index 2059963..8f844bd 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -212,7 +212,7 @@ { btnClose.IsSelected = false; curtain.trait_on_off.value = "off"; - //Control.Send(CommandType_A.write, curtain); + curtain.percent = 0; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("on_off",curtain.trait_on_off.value.ToString()); Control.SendWriteCommand(curtain, d); @@ -226,7 +226,7 @@ { btnOpen.IsSelected = false; curtain.trait_on_off.value = "on"; - //Control.Send(CommandType_A.write, curtain); + curtain.percent = 100; System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); d.Add("on_off", curtain.trait_on_off.value.ToString()); Control.SendWriteCommand(curtain, d); -- Gitblit v1.8.0