Skip to content
Snippets Groups Projects
Commit 392951ad authored by kpetridis's avatar kpetridis
Browse files

Introduced new variable

parent 230f4a37
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,13 @@ inline const uint8_t ECSSMaxReportTypeDefinitions = 20;
*/
inline const uint8_t ECSSMaxServiceTypeDefinitions = 10;
/**
* The number of possible combinations between application processes and service types, i.e. the number of all
* possible (applicationID, serviceType) pairs.
*/
inline const uint8_t ECSSMaxApplicationsServicesCombinations = ECSSMaxControlledApplicationProcesses *
ECSSMaxServiceTypeDefinitions;
/**
* The max number of event definition IDs per event report blocking type definition in the event report blocking
* configuration
......
......@@ -39,9 +39,7 @@ public:
* already exist in the map, and the requested report type is located in the vector of report types, which corresponds
* to the appID and service type.
*/
etl::map<AppServiceKey, ReportTypeDefinitions,
ECSSMaxControlledApplicationProcesses * ECSSMaxServiceTypeDefinitions>
definitions;
etl::map<AppServiceKey, ReportTypeDefinitions, ECSSMaxApplicationsServicesCombinations> definitions;
ApplicationProcessConfiguration() = default;
};
......
......@@ -43,7 +43,7 @@ bool RealTimeForwardingControlService::isAppControlled(Message& request, uint8_t
bool RealTimeForwardingControlService::checkApplicationOfAppProcessConfig(Message& request, uint8_t applicationID,
uint8_t numOfServices) {
if (not isAppControlled(request, applicationID) or allServiceTypesAllowed(request, applicationID)) {
for (uint8_t l = 0; l < numOfServices; l++) {
for (uint8_t i = 0; i < numOfServices; i++) {
request.skipBytes(1);
uint8_t numOfMessages = request.readUint8();
request.skipBytes(numOfMessages);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment