From 51cb254cbd616e84b7a466b195eb43ab097c3897 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 29 九月 2020 13:16:45 +0800 Subject: [PATCH] 20200928 --- HDL_ON/DriverLayer/Control.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HDL_ON/DriverLayer/Control.cs b/HDL_ON/DriverLayer/Control.cs index 4fca49b..84ec15d 100644 --- a/HDL_ON/DriverLayer/Control.cs +++ b/HDL_ON/DriverLayer/Control.cs @@ -51,7 +51,7 @@ { function.usageCount++; function.refreshTime = DateTime.Now; - if (function.bus_Data != null) + if (DB_ResidenceData.residenceData.GatewayType == 0) { try { @@ -260,11 +260,11 @@ function.bus_Data.LoopID, b1, 0, Convert.ToByte(light.fadeTime) }); - DimmerPage.UpdataStates(light); + DimmerPage.UpdataStates(light); break; case FunctionType.Relay: ControlBytesSend(Command.SetSingleLight, subnetId, deviceId, new byte[] { function.bus_Data.LoopID, light.trait_on_off.value.ToString() == "on" ? (byte)100 : (byte)0, 0, 0 }); - RelayPage.UpdataState(light); + RelayPage.UpdataState(light); break; } break; -- Gitblit v1.8.0