fix priority comparison in sched_switch

This commit is contained in:
Oleg Hahm 2013-08-12 19:27:04 +02:00
parent a02e00b68b
commit b6fe284331

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