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:
parent
639514e870
commit
273f281a2f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user