Skip to content
Snippets Groups Projects
Commit c4a53904 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #126 from OlegHahm/scheduler_fix

fix priority comparison in sched_switch
parents fa9ae646 b6fe2843
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ void sched_switch(uint16_t current_prio, uint16_t other_prio, int in_isr)
{
DEBUG("%s: %i %i %i\n", active_thread->name, (int)current_prio, (int)other_prio, in_isr);
if (current_prio <= other_prio) {
if (current_prio >= other_prio) {
if (in_isr) {
sched_context_switch_request = 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment