From 23cfe3aa69b575c950b652d7ffb29d38ac30aeb1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 15 Nov 2022 17:15:14 +0100 Subject: [PATCH] unbelievable --- bsp_hosted/scheduling.cpp | 2 +- bsp_hosted/scheduling.h | 5 ++++- linux/scheduling.h | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bsp_hosted/scheduling.cpp b/bsp_hosted/scheduling.cpp index bb50530b..20b8ba9c 100644 --- a/bsp_hosted/scheduling.cpp +++ b/bsp_hosted/scheduling.cpp @@ -174,7 +174,7 @@ void scheduling::initTasks() { PeriodicTaskIF* plTask = factory->createPeriodicTask( "PL_TASK", 25, PeriodicTaskIF::MINIMUM_STACK_SIZE, 1.0, missedDeadlineFunc); - scheduling::addMpsocSupvHandlers(plTask); + //scheduling::addMpsocSupvHandlers(plTask); #if OBSW_ADD_TEST_CODE == 1 result = testTask->addComponent(objects::TEST_TASK); if (result != returnvalue::OK) { diff --git a/bsp_hosted/scheduling.h b/bsp_hosted/scheduling.h index e1ba3a4a..fabec0ce 100644 --- a/bsp_hosted/scheduling.h +++ b/bsp_hosted/scheduling.h @@ -1,6 +1,9 @@ -#pragma once +#ifndef _BSP_HOSTED_SCHEDULING_H_ +#define _BSP_HOSTED_SCHEDULING_H_ namespace scheduling { void initMission(); void initTasks(); }; // namespace initmission + +#endif diff --git a/linux/scheduling.h b/linux/scheduling.h index b5ffc415..ef15cd23 100644 --- a/linux/scheduling.h +++ b/linux/scheduling.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef _LINUX_SCHEDULING_H +#define _LINUX_SCHEDULING_H #include @@ -6,5 +7,6 @@ namespace scheduling { void schedulingScex(TaskFactory& factory, PeriodicTaskIF*& scexDevHandler, PeriodicTaskIF*& scexReaderTask); void addMpsocSupvHandlers(PeriodicTaskIF* task); - } // namespace scheduling + +#endif