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

core/msg: revert part of #1285

use m->sender_pid instead of sched_active_pid again
undoes the optimization intended by #1285
fixes uint/int warning
This commit is contained in:
Ludwig Ortmann 2014-07-08 17:07:25 +02:00
parent 67c3ceb979
commit b6f2426d16

View File

@ -58,7 +58,7 @@ int msg_send(msg_t *m, unsigned int target_pid, bool block)
return msg_send_int(m, target_pid);
}
if (sched_active_pid == target_pid) {
if (m->sender_pid == target_pid) {
return msg_send_to_self(m);
}