wxr
2020-09-11 9b5399d3dd4299563821af0a7131f9a52402feea
HDL_ON/DriverLayer/CommonPage.cs
@@ -65,15 +65,10 @@
            return BitConverter.ToSingle(byteTemp, 0);
        }
        static void Packet_ReceiveEvent(byte subnetID, byte deviceID, Command command, byte[] receiveBytes, string revGatewayIP)
        {
            try
            {
                if(revGatewayIP == "172.16.2.237")
                {
                }
                Control.controlLostCount = 0;
                switch (command)
@@ -88,12 +83,6 @@
                            {
                                if (updataObj.functionType != FunctionType.RGB)
                                {
                                    var newState = receiveBytes[2] == 0 ? "off" : "on";
                                    if (updataObj.trait_on_off.value.ToString() == newState)
                                    {
                                        //状态一样,不用再刷新页面
                                        break;
                                    }
                                    if (updataObj.trait_on_off.value.ToString() == "on")
                                    {
                                        if (updataObj.functionType == FunctionType.Fan)
@@ -255,12 +244,17 @@
                                FunctionPage.UpdataStates(curtain);
                                HomePage.UpdataFunctionStates(curtain);
                                ClassificationPage.UpdataInfo(curtain);
                                RollingShutterPage.UpdataState(curtain);
                                switch (curtain.functionType)
                                {
                                    case FunctionType.Curtain:
                                        CurtainModulePage.UpdataState(curtain);
                                        break;
                                    case FunctionType.MotorCurtain:
                                        MotorCurtainPage.UpdataState(curtain);
                                        break;
                                    case FunctionType.RollingShutter:
                                        RollingShutterPage.UpdataState(curtain);
                                        break;
                                }
                            }
                        }