1
0
forked from fsfw/fsfw

some bugfixes

This commit is contained in:
2020-09-06 11:48:32 +02:00
parent b7c4f5ce05
commit 3e0819f954
6 changed files with 234 additions and 6 deletions

View File

@ -96,6 +96,10 @@ void PeriodicTask::taskFunctionality() {
};
auto nextStartTime{ currentStartTime };
for (const auto& object: objectList) {
object->initializeAfterTaskCreation();
}
/* Enter the loop that defines the task behavior. */
for (;;) {
if(terminateThread.load()) {

View File

@ -44,9 +44,17 @@ MessageQueueIF* QueueMapManager::getMessageQueue(
return queueIter->second;
}
else {
sif::warning << "QueueMapManager::getQueueHandle: The ID" <<
messageQueueId << " does not exists in the map" << std::endl;
return nullptr;
if(messageQueueId == MessageQueueIF::NO_QUEUE) {
sif::error << "QueueMapManager::getQueueHandle: Configuration"
<< " error, NO_QUEUE was passed to this function!"
<< std::endl;
}
else {
sif::warning << "QueueMapManager::getQueueHandle: The ID "
<< messageQueueId << " does not exists in the map."
<< std::endl;
}
return nullptr;
}
}