Skip to content

Commit

Permalink
Scheduler: fix parameters overload for rtos::Thread constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Oct 27, 2020
1 parent 58fee8b commit 77d428f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/Scheduler/src/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void SchedulerClass::startLoop(SchedulerTask task, uint32_t stackSize) {
while (threads[i] != NULL && i < MAX_THREADS_NUMBER) {
i++;
}
threads[i] = new rtos::Thread(stackSize);
threads[i] = new rtos::Thread(osPriorityNormal, stackSize);
threads[i]->start(mbed::callback(loophelper, task));
}

Expand All @@ -40,7 +40,7 @@ void SchedulerClass::start(SchedulerTask task, uint32_t stackSize) {
while (threads[i] != NULL && i < MAX_THREADS_NUMBER) {
i++;
}
threads[i] = new rtos::Thread(stackSize);
threads[i] = new rtos::Thread(osPriorityNormal, stackSize);
threads[i]->start(task);
}

Expand All @@ -49,7 +49,7 @@ void SchedulerClass::start(SchedulerParametricTask task, void *taskData, uint32_
while (threads[i] != NULL && i < MAX_THREADS_NUMBER) {
i++;
}
threads[i] = new rtos::Thread(stackSize);
threads[i] = new rtos::Thread(osPriorityNormal, stackSize);
threads[i]->start(mbed::callback(task, taskData));
}

Expand Down

0 comments on commit 77d428f

Please sign in to comment.