From f534d41c36d5895322bf691784a10435b64609fe Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 25 十二月 2020 13:52:00 +0800 Subject: [PATCH] 修复添加、删除楼层时候,界面刷新异常问题 --- HDL_ON/DAL/DriverLayer/Packet.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Packet.cs b/HDL_ON/DAL/DriverLayer/Packet.cs index f229efc..a1d7c74 100644 --- a/HDL_ON/DAL/DriverLayer/Packet.cs +++ b/HDL_ON/DAL/DriverLayer/Packet.cs @@ -91,6 +91,14 @@ } //澶勭悊鎺ユ敹鍒扮殑鏁版嵁 UdpPacket_DataProcessing(subnetID, deviceID, command, usefulBytes); +#if DEBUG + string ddd = ""; + foreach(var bb in usefulBytes) + { + ddd += bb + ","; + } + MainPage.Log(ddd); +#endif //澶勭悊鏄惁瑕侀噸鍙戞暟鎹� ManagerReceive(subnetID, deviceID, command, usefulBytes); } @@ -572,6 +580,8 @@ MainPage.Log($"name : {Name} ; mac : {mac}"); if (DB_ResidenceData.Instance.residenceGatewayMAC == mac) { + //鏈湴鎼滅储缃戝叧鎴愬姛 + Control.Ins.IsSearchLocalGatewaySuccessful = true; Control.Ins.GatewayOnline = true; Control.Ins.IsRemote = false; DAL.Mqtt.MqttClient.DisConnectRemote();//鏂紑mqtt -- Gitblit v1.8.0