动力学列车数据配置调整
This commit is contained in:
parent
d7a6b9a1c5
commit
7a92dab7b3
|
@ -181,9 +181,7 @@ func AddTrainStateNew(vs *VerifySimulation, status *state_proto.TrainState, conf
|
|||
func createOrUpdateStateDynamicConfig(trainState *state_proto.TrainState, configTrainData dto.ConfigTrainData, trainEndsA dto.ConfigTrainEnds,
|
||||
trainEndsB dto.ConfigTrainEnds) {
|
||||
trainState.TrainDynamicConfig = service.TrainConfigToProtoConvert(&configTrainData)
|
||||
if trainState.TrainDynamicConfig == nil {
|
||||
slog.Error("")
|
||||
} else {
|
||||
if trainState.TrainDynamicConfig != nil {
|
||||
copyTrainEnds(trainState, "TrainEndsA", trainEndsA)
|
||||
copyTrainEnds(trainState, "TrainEndsB", trainEndsB)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue