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

* msg: fix msg_reply

This commit is contained in:
Kaspar Schleiser 2010-10-28 10:12:45 +02:00
parent 6f5b9c599a
commit 7a8a07fe08

View File

@ -133,7 +133,7 @@ int msg_reply(msg *m, msg *reply) {
DEBUG("%s: msg_reply(): direct msg copy.\n", fk_thread->name);
/* copy msg to target */
msg* target_message = (msg*)target->wait_data;
*target_message = *m;
*target_message = *reply;
sched_set_status(target, STATUS_PENDING);
restoreIRQ(state);
fk_yield();