Skip to content
Snippets Groups Projects
Commit 7a8a07fe authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

* msg: fix msg_reply

parent 6f5b9c59
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ int msg_reply(msg *m, msg *reply) { ...@@ -133,7 +133,7 @@ int msg_reply(msg *m, msg *reply) {
DEBUG("%s: msg_reply(): direct msg copy.\n", fk_thread->name); DEBUG("%s: msg_reply(): direct msg copy.\n", fk_thread->name);
/* copy msg to target */ /* copy msg to target */
msg* target_message = (msg*)target->wait_data; msg* target_message = (msg*)target->wait_data;
*target_message = *m; *target_message = *reply;
sched_set_status(target, STATUS_PENDING); sched_set_status(target, STATUS_PENDING);
restoreIRQ(state); restoreIRQ(state);
fk_yield(); fk_yield();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment