added init after task creation
This commit is contained in:
parent
2fce82db10
commit
3b7bebeb6f
@ -50,6 +50,9 @@ ReturnValue_t PeriodicTask::sleepFor(uint32_t ms) {
|
|||||||
|
|
||||||
void PeriodicTask::taskFunctionality() {
|
void PeriodicTask::taskFunctionality() {
|
||||||
RTEMSTaskBase::setAndStartPeriod(periodTicks,&periodId);
|
RTEMSTaskBase::setAndStartPeriod(periodTicks,&periodId);
|
||||||
|
for (const auto& object: objectList) {
|
||||||
|
object->initializeAfterTaskCreation();
|
||||||
|
}
|
||||||
/* The task's "infinite" inner loop is entered. */
|
/* The task's "infinite" inner loop is entered. */
|
||||||
while (1) {
|
while (1) {
|
||||||
for (const auto& object: objectList) {
|
for (const auto& object: objectList) {
|
||||||
|
Loading…
Reference in New Issue
Block a user