Skip to content
Snippets Groups Projects
Unverified Commit 2448ba23 authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Repalce a check with the lists native functions

parent 18f33051
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ void TimeBasedSchedulingService::insertActivities(Message &request) {
uint32_t currentTime = TimeGetter::getSeconds(); // Get the current system time
uint32_t releaseTime = request.readUint32(); // Get the specified release time
if ((scheduledActivities.size() >= ECSS_MAX_NUMBER_OF_TIME_SCHED_ACTIVITIES) ||
if ((not scheduledActivities.available()) ||
(releaseTime < (currentTime + ECSS_TIME_MARGIN_FOR_ACTIVATION))) {
ErrorHandler::reportError(request, ErrorHandler::InstructionExecutionStartError);
request.readPosition += ECSS_TC_REQUEST_STRING_SIZE;
......
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