From cbd2c4a0ab2a40c32e6108d6ccf0f34cee816fef Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 14 Jun 2024 09:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=B0=83=E6=95=B4=E5=8F=8A?= =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/train_pc_sim/train_pc_sim.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/train_pc_sim/train_pc_sim.go b/third_party/train_pc_sim/train_pc_sim.go index 978aca0..1a8b185 100644 --- a/third_party/train_pc_sim/train_pc_sim.go +++ b/third_party/train_pc_sim/train_pc_sim.go @@ -70,13 +70,14 @@ func (rd *trainPcReciverData) receiverDataHandle(n int, data []byte) { if rd.clientKey == "B" { connType = state_proto.TrainConnState_PC_SIM_B } + baseMsg := &message.TrainPcSimBaseMessage{} err := baseMsg.Decode(data) if err != nil { slog.Error("车载pc仿真接受数据解析失败 ") return } - + slog.Info(fmt.Sprintf("pc仿真接收数据:%v,类型:%v", hex.EncodeToString(data), baseMsg.Type)) switch baseMsg.Type { //case RECIVE_TRAIN_CREATE_REMOVE: // pc.trainPcSimManage.TrainPcSimConnOrRemoveHandle(baseMsg.Data[0])