From 670a06b177bd24152f2b6b9610cf92e64b31d614 Mon Sep 17 00:00:00 2001 From: Robert Schmid Date: Wed, 13 Mar 2024 14:21:24 +0100 Subject: [PATCH] Fix commented out PdiVersionCheckMessages --- src/Messages/Baseline4R2/Message.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Messages/Baseline4R2/Message.cs b/src/Messages/Baseline4R2/Message.cs index 4ea7459..832d4b5 100644 --- a/src/Messages/Baseline4R2/Message.cs +++ b/src/Messages/Baseline4R2/Message.cs @@ -32,7 +32,7 @@ public static Message FromBytes(byte[] message) { 0x0014 => AdjacentInterlockingSystemRouteReleaseInhibitionStatusMessage.FromBytes(message), 0x0016 => AdjacentInterlockingSystemAbortRouteCancellationRequestCommand.FromBytes(message), 0x0024 => AdjacentInterlockingSystemPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => AdjacentInterlockingSystemPdiVersionCheckMessage.FromBytes(message), + 0x0025 => AdjacentInterlockingSystemPdiVersionCheckMessage.FromBytes(message), 0x0021 => AdjacentInterlockingSystemInitialisationRequestCommand.FromBytes(message), 0x0022 => AdjacentInterlockingSystemStartInitialisationMessage.FromBytes(message), 0x0026 => AdjacentInterlockingSystemStatusReportCompletedMessage.FromBytes(message), @@ -54,7 +54,7 @@ public static Message FromBytes(byte[] message) { 0x0011 => TrainDetectionSystemTvpsFcPAFailedMessage.FromBytes(message), 0x000B => TrainDetectionSystemTdpStatusMessage.FromBytes(message), 0x0024 => TrainDetectionSystemPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => TrainDetectionSystemPdiVersionCheckMessage.FromBytes(message), + 0x0025 => TrainDetectionSystemPdiVersionCheckMessage.FromBytes(message), 0x0021 => TrainDetectionSystemInitialisationRequestCommand.FromBytes(message), 0x0022 => TrainDetectionSystemStartInitialisationMessage.FromBytes(message), 0x0026 => TrainDetectionSystemStatusReportCompletedMessage.FromBytes(message), @@ -70,7 +70,7 @@ public static Message FromBytes(byte[] message) { 0x0002 => LightSignalSetLuminosityCommand.FromBytes(message), 0x0004 => LightSignalSetLuminosityMessage.FromBytes(message), 0x0024 => LightSignalPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => LightSignalPdiVersionCheckMessage.FromBytes(message), + 0x0025 => LightSignalPdiVersionCheckMessage.FromBytes(message), 0x0021 => LightSignalInitialisationRequestCommand.FromBytes(message), 0x0022 => LightSignalStartInitialisationMessage.FromBytes(message), 0x0026 => LightSignalStatusReportCompletedMessage.FromBytes(message), @@ -102,7 +102,7 @@ public static Message FromBytes(byte[] message) { }, ProtocolType.RadioBlockCenter => messageType switch { 0x0024 => RadioBlockCenterPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => RadioBlockCenterPdiVersionCheckMessage.FromBytes(message), + 0x0025 => RadioBlockCenterPdiVersionCheckMessage.FromBytes(message), 0x0021 => RadioBlockCenterInitialisationRequestCommand.FromBytes(message), 0x0022 => RadioBlockCenterStartInitialisationMessage.FromBytes(message), 0x0026 => RadioBlockCenterStatusReportCompletedMessage.FromBytes(message), @@ -117,7 +117,7 @@ public static Message FromBytes(byte[] message) { ProtocolType.LevelCrossing => messageType switch { 0x0002 => LevelCrossingDeactivationCommand.FromBytes(message), 0x0024 => LevelCrossingPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => LevelCrossingPdiVersionCheckMessage.FromBytes(message), + 0x0025 => LevelCrossingPdiVersionCheckMessage.FromBytes(message), 0x0021 => LevelCrossingInitialisationRequestCommand.FromBytes(message), 0x0022 => LevelCrossingStartInitialisationMessage.FromBytes(message), 0x0026 => LevelCrossingStatusReportCompletedMessage.FromBytes(message), @@ -131,7 +131,7 @@ public static Message FromBytes(byte[] message) { }, ProtocolType.CC => messageType switch { 0x0024 => CCPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => CCPdiVersionCheckMessage.FromBytes(message), + 0x0025 => CCPdiVersionCheckMessage.FromBytes(message), 0x0021 => CCInitialisationRequestCommand.FromBytes(message), 0x0022 => CCStartInitialisationMessage.FromBytes(message), 0x0026 => CCStatusReportCompletedMessage.FromBytes(message), @@ -163,7 +163,7 @@ public static Message FromBytes(byte[] message) { ProtocolType.ExternalLevelCrossingSystem => messageType switch { 0x0007 => ExternalLevelCrossingSystemCrossingClearCommand.FromBytes(message), 0x0024 => ExternalLevelCrossingSystemPdiVersionCheckCommand.FromBytes(message), - // 0x0025 => ExternalLevelCrossingSystemPdiVersionCheckMessage.FromBytes(message), + 0x0025 => ExternalLevelCrossingSystemPdiVersionCheckMessage.FromBytes(message), 0x0021 => ExternalLevelCrossingSystemInitialisationRequestCommand.FromBytes(message), 0x0022 => ExternalLevelCrossingSystemStartInitialisationMessage.FromBytes(message), 0x0026 => ExternalLevelCrossingSystemStatusReportCompletedMessage.FromBytes(message),