From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 19 三月 2020 17:14:16 +0800
Subject: [PATCH] 20200319

---
 HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
index b70f15a..0bf825b 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
@@ -44,8 +44,8 @@
                 new System.Threading.Thread(() =>
                 {
                     var light = this.light as Light;
-                    light.state = btnSwitch.IsSelected ? 1 : 0;
-                    Control.Send("write", this.light, 3);
+                    light.on_off = btnSwitch.IsSelected ? 1 : 0;
+                    Control.Send("write", this.light);
                 })
                 { IsBackground = true }.Start();
             };
@@ -56,8 +56,8 @@
                 new System.Threading.Thread(() =>
                 {
                     var light = this.light as Light;
-                    light.state = btnSwitch.IsSelected ? 1 : 0;
-                    Control.Send("write", this.light, 3);
+                    light.on_off = btnSwitch.IsSelected ? 1 : 0;
+                    Control.Send("write", this.light);
                 })
                 { IsBackground = true }.Start();
             };

--
Gitblit v1.8.0