new initializeSequence func

This commit is contained in:
muellerr committed 2020-08-27 14:42:10 +02:00
1 parent 790e0399b7
commit 1dfdd65662
8 files changed
+45 -20

No files matched your search

+3 -1
View File
@@ -49,7 +49,7 @@ ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
return HasReturnvaluesIF::RETURN_FAILED;
}
ReturnValue_t FixedTimeslotTask::checkAndInitializeSequence() const {
ReturnValue_t FixedTimeslotTask::checkSequence() const {
return pst.checkSequence();
}
@@ -58,6 +58,8 @@ void FixedTimeslotTask::taskFunctionality() {
if (!started) {
suspend();
}
pst.intializeSequenceAfterTaskCreation();
//The start time for the first entry is read.
uint64_t lastWakeTime = getCurrentMonotonicTimeMs();
uint64_t interval = pst.getIntervalToNextSlotMs();