From a251442d9fc088b3d8cf74d20b959f0f6103b095 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 14 九月 2020 17:42:10 +0800
Subject: [PATCH] 20200914
---
HDL_ON/DriverLayer/CommonPage.cs | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/HDL_ON/DriverLayer/CommonPage.cs b/HDL_ON/DriverLayer/CommonPage.cs
index 92167dd..f366770 100644
--- a/HDL_ON/DriverLayer/CommonPage.cs
+++ b/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;
}
}
}
--
Gitblit v1.8.0