wxr
2020-10-14 6c8946b21635246355ec41f216426783685a14b2
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;