From 6a9ad7ec93218913a2ce3b898bb036f18f8f0da4 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 13 八月 2020 17:06:36 +0800 Subject: [PATCH] 20200813 --- HDL_ON/Entity/Function/Light.cs | 21 +-------------------- 1 files changed, 1 insertions(+), 20 deletions(-) diff --git a/HDL_ON/Entity/Function/Light.cs b/HDL_ON/Entity/Function/Light.cs index 071ccf7..ac77986 100644 --- a/HDL_ON/Entity/Function/Light.cs +++ b/HDL_ON/Entity/Function/Light.cs @@ -211,25 +211,6 @@ var sendJob = new JObject(); if (command == CommandType_A.write) { - -#if DEBUG - switch(sid) - { - case "00010114051D0A300C92C902020200010001": - sid = "00010114041710193123D402020200010001"; - break; - case "00010114051D0A300C92C902020200020001": - sid = "00010114041710193123D402020200020001"; - break; - case "00010114051D0A300C92C902020200030001": - sid = "00010114041710193123D402020200030001"; - break; - case "00010114051D0A300C92C902020200040001": - sid = "00010114041710193123D402020200040001"; - break; - } -#endif - sendJob = new JObject { { "vendor_code", vendor_code }, { "command", command.ToString() }, { "type", "device" } }; JObject data = new JObject { { "sid", sid } }; sendJob.Add("objects", data); @@ -273,7 +254,7 @@ }); controlData.Add(new ControlData() { - name = "brightness", + name = "color", data_type = "int", value = color.ToString(), }); -- Gitblit v1.8.0