diff --git a/config/bj_local.yml b/config/bj_local.yml index fed7d57..bb08c56 100644 --- a/config/bj_local.yml +++ b/config/bj_local.yml @@ -23,7 +23,7 @@ interlock: ip: 10.60.1.59 localPort: 10000 remotePort: 4000 - open: true + open: false # 数据源 datasource: diff --git a/config/test_local.yml b/config/test_local.yml index 346044b..c13489e 100644 --- a/config/test_local.yml +++ b/config/test_local.yml @@ -23,7 +23,7 @@ interlock: ip: 10.60.1.59 localPort: 10000 remotePort: 4000 - open: true + open: false # 数据源 datasource: diff --git a/third_party/message/train_control.go b/third_party/message/train_control.go index 0956ec4..9a626a1 100644 --- a/third_party/message/train_control.go +++ b/third_party/message/train_control.go @@ -25,7 +25,7 @@ func (r *TrainControlMsg) Decode(buf []byte) error { t.TractionStatus = (b2 & (1 << 4)) != 0 t.BrakingStatus = (b2 & (1 << 5)) != 0 t.EmergencyBrakingStatus = (b2 & (1 << 6)) != 0 - t.TurnbackStatus = (b2 & 7) != 0 + t.TurnbackStatus = (b2 & (1 << 7)) != 0 b3 := buf[3] t.JumpStatus = (b3 & 1) != 0 t.Ato = (b3 & (1 << 1)) != 0