todo removed
This commit is contained in:
parent
8ce0c8facb
commit
98e505c9ab
@ -59,8 +59,8 @@ ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
|||||||
uint32_t slotTimeMs, int8_t executionStep) {
|
uint32_t slotTimeMs, int8_t executionStep) {
|
||||||
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
|
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
|
||||||
if(slotTimeMs == 0) {
|
if(slotTimeMs == 0) {
|
||||||
// TODO: FreeRTOS throws errors for zero values.
|
// FreeRTOS throws a sanity error for zero values, so we set
|
||||||
// maybe there is a better solution than this.
|
// the time to one millisecond.
|
||||||
slotTimeMs = 1;
|
slotTimeMs = 1;
|
||||||
}
|
}
|
||||||
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user