diff --git a/ts/simulation/wayside/memory/wayside_simulation.go b/ts/simulation/wayside/memory/wayside_simulation.go index 69d7719..ab35caa 100644 --- a/ts/simulation/wayside/memory/wayside_simulation.go +++ b/ts/simulation/wayside/memory/wayside_simulation.go @@ -774,11 +774,16 @@ func fillProtoRepository(repo *proto.Repository, storage *graphicData.RtssGraphi if data.SectionType == graphicData.Section_TurnoutPhysical { turnoutIds = findTurnoutIds(axleCountingMap, data.AxleCountings) } + centralizedStation := "" + if len(data.CentralizedStations) > 0 { + centralizedStation = data.CentralizedStations[0] + } physicalSection := &proto.PhysicalSection{ - Id: data.Common.Id, - ADevicePort: convertDevicePort(data.PaRef), - BDevicePort: convertDevicePort(data.PbRef), - TurnoutIds: turnoutIds, + Id: data.Common.Id, + ADevicePort: convertDevicePort(data.PaRef), + BDevicePort: convertDevicePort(data.PbRef), + TurnoutIds: turnoutIds, + CentralizedStation: centralizedStation, } repo.PhysicalSections = append(repo.PhysicalSections, converSectionUid(physicalSection, uidsMap)) }