1
0
forked from fsfw/fsfw

Merge branch 'luz_FixedTimeslotTask_ExistenceCheck' into mueller_framework

This commit is contained in:
2020-05-05 18:41:40 +02:00
3 changed files with 22 additions and 5 deletions

View File

@ -57,7 +57,7 @@ ReturnValue_t FixedTimeslotTask::startTask() {
ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
uint32_t slotTimeMs, int8_t executionStep) {
if (objectManager->get<ExecutableObjectIF>(componentId) != NULL) {
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
if(slotTimeMs == 0) {
// TODO: FreeRTOS throws errors for zero values.
// maybe there is a better solution than this.