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

core: Fix msg_send_receive

Fixes #1935
This commit is contained in:
Martine Lenders 2014-11-04 20:19:13 +01:00
parent 8c189ce56e
commit c0b0110de9

View File

@ -146,9 +146,8 @@ static int _msg_send(msg_t *m, kernel_pid_t target_pid, bool block, unsigned sta
*target_message = *m;
sched_set_status(target, STATUS_PENDING);
uint16_t target_prio = target->priority;
restoreIRQ(state);
sched_switch(target_prio);
thread_yield_higher();
}
return 1;