periodic posix task hotfix

This commit is contained in:
Robin Müller 2020-08-07 22:19:13 +02:00
parent caeb2f9dd6
commit 54825dca6b

View File

@ -22,7 +22,7 @@ void* PeriodicPosixTask::taskEntryPoint(void* arg) {
}
ReturnValue_t PeriodicPosixTask::addComponent(object_id_t object,
bool addTaskIF) {
bool addTaskIF) {
ExecutableObjectIF* newObject = objectManager->get<ExecutableObjectIF>(
object);
if (newObject == nullptr) {
@ -30,9 +30,7 @@ ReturnValue_t PeriodicPosixTask::addComponent(object_id_t object,
}
objectList.push_back(newObject);
if(setTaskIF) {
newObject->setTaskIF(this);
}
newObject->setTaskIF(this);
return HasReturnvaluesIF::RETURN_OK;
}