added init after task creation

This commit is contained in:
Robin Müller 2021-01-27 23:49:50 +01:00
parent 2fce82db10
commit 3b7bebeb6f

View File

@ -50,6 +50,9 @@ ReturnValue_t PeriodicTask::sleepFor(uint32_t ms) {
void PeriodicTask::taskFunctionality() {
RTEMSTaskBase::setAndStartPeriod(periodTicks,&periodId);
for (const auto& object: objectList) {
object->initializeAfterTaskCreation();
}
/* The task's "infinite" inner loop is entered. */
while (1) {
for (const auto& object: objectList) {