1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #126 from OlegHahm/scheduler_fix

fix priority comparison in sched_switch
This commit is contained in:
Oleg Hahm 2013-08-13 08:35:35 -07:00
commit c4a5390408

View File

@ -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;
}