From d53e6af2c5f17838fa79659614b15a2a1f383399 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 31 三月 2023 10:04:58 +0800 Subject: [PATCH] 1 --- Crabtree/SmartHome/HDL/Operation/Control.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/Control.cs b/Crabtree/SmartHome/HDL/Operation/Control.cs index 1eedbc0..907fb16 100644 --- a/Crabtree/SmartHome/HDL/Operation/Control.cs +++ b/Crabtree/SmartHome/HDL/Operation/Control.cs @@ -223,6 +223,7 @@ case Command.SET_JOG_CLOSE_TIME_ACK: case Command.READ_JOG_CLOSE_TIME_ACK: case Command.ReadRemarkACK: + case Command.ApplyServerKeyACK: receiveFlag += ""; break; case Command.ControlMusicModel1ACK: @@ -436,7 +437,7 @@ //杩欓噷鏄噸鍙戜袱娆� while (Packet.HaveSendCount < 3 && BusSocket.IsRunning) { - if (Packet.FlagDateTime.AddMilliseconds (1000).Ticks <= System.DateTime.Now.Ticks) { + if (Packet.FlagDateTime.AddMilliseconds (300).Ticks <= System.DateTime.Now.Ticks) { Utlis.WriteLine ("閲嶅彂鏁版嵁:" + SendFlag); BusSocket.AsyncBeginSend (Packet); } @@ -581,6 +582,8 @@ case Command.SET_JOG_CLOSE_TIME_CMD: case Command.READ_JOG_CLOSE_TIME_CMD: case Command.ReadRemark: + case Command.ApplyServerKey: + case Command.RestartTheGateway: this.SendFlag += ""; break; case Command.ControlMusicModel2: -- Gitblit v1.8.0