From ffe3499f1b10db34e0026a29d3437501a1e493e7 Mon Sep 17 00:00:00 2001
From: kpetridis <petridkon@gmail.com>
Date: Sun, 8 May 2022 15:22:15 +0300
Subject: [PATCH] Fixed error handler messages enumeration

---
 inc/ErrorHandler.hpp | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/inc/ErrorHandler.hpp b/inc/ErrorHandler.hpp
index bb49070a..351a75ca 100644
--- a/inc/ErrorHandler.hpp
+++ b/inc/ErrorHandler.hpp
@@ -279,26 +279,6 @@ public:
 		 * Attempt to set a packet store size to a value that the available memory cannot handle (ST[15]).
 		 */
 		UnableToHandlePacketStoreSize = 36,
-		/**
-		 * Attempt to add a new service type, when the addition of all service types is already enabled in the
-		 * Application Process configuration (ST[14])
-		 */
-		AllServiceTypesAlreadyAllowed = 21,
-		/**
-		 * Attempt to add a new report type, when the max number of reports types allowed per service type
-		 * definition in the Application Process configuration is already reached (ST[14])
-		 */
-		MaxReportTypesReached = 22,
-		/**
-		 * Attempt to add a new service type, when the max number of service types allowed per application process
-		 * definition in the Application Process configuration is already reached (ST[14])
-		 */
-		MaxServiceTypesReached = 23,
-		/**
-		 * Attempt to add a report/event definition/housekeeping report type, when the specified application process
-		 * ID is not controlled by the Service (ST[14])
-		 */
-		NotControlledApplication = 24,
 		/**
 		 * Attempt to delete all parameter monitoring definitions but the Parameter Monitoring Function Status is
 		 * enabled.
@@ -343,7 +323,27 @@ public:
 		/**
 		 * Request to report a non existent parameter monitoring definition.
 		 */
-		ReportParameterNotInTheParameterMonitoringList = 46
+		ReportParameterNotInTheParameterMonitoringList = 46,
+		/**
+		 * Attempt to add a new service type, when the addition of all service types is already enabled in the
+		 * Application Process configuration (ST[14])
+		 */
+		AllServiceTypesAlreadyAllowed = 47,
+		/**
+		 * Attempt to add a new report type, when the max number of reports types allowed per service type
+		 * definition in the Application Process configuration is already reached (ST[14])
+		 */
+		MaxReportTypesReached = 48,
+		/**
+		 * Attempt to add a new service type, when the max number of service types allowed per application process
+		 * definition in the Application Process configuration is already reached (ST[14])
+		 */
+		MaxServiceTypesReached = 49,
+		/**
+		 * Attempt to add a report/event definition/housekeeping report type, when the specified application process
+		 * ID is not controlled by the Service (ST[14])
+		 */
+		NotControlledApplication = 50,
 	};
 
 	/**
-- 
GitLab