Skip to content

Commit 77d428f

Browse files
committed
Scheduler: fix parameters overload for rtos::Thread constructor
1 parent 58fee8b commit 77d428f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/Scheduler/src/Scheduler.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void SchedulerClass::startLoop(SchedulerTask task, uint32_t stackSize) {
3131
while (threads[i] != NULL && i < MAX_THREADS_NUMBER) {
3232
i++;
3333
}
34-
threads[i] = new rtos::Thread(stackSize);
34+
threads[i] = new rtos::Thread(osPriorityNormal, stackSize);
3535
threads[i]->start(mbed::callback(loophelper, task));
3636
}
3737

@@ -40,7 +40,7 @@ void SchedulerClass::start(SchedulerTask task, uint32_t stackSize) {
4040
while (threads[i] != NULL && i < MAX_THREADS_NUMBER) {
4141
i++;
4242
}
43-
threads[i] = new rtos::Thread(stackSize);
43+
threads[i] = new rtos::Thread(osPriorityNormal, stackSize);
4444
threads[i]->start(task);
4545
}
4646

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

0 commit comments

Comments
 (0)