1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

gnrc: netapi: assert for correct ACK msg type

This commit is contained in:
Oleg Hahm 2016-05-17 00:01:06 +02:00
parent 3d1acc974e
commit 00ebb4b2ed

View File

@ -54,6 +54,7 @@ static inline int _get_set(kernel_pid_t pid, uint16_t type,
cmd.content.ptr = (void *)&o;
/* trigger the netapi */
msg_send_receive(&cmd, &ack, pid);
assert(ack.type == GNRC_NETAPI_MSG_TYPE_ACK);
/* return the ACK message's value */
return (int)ack.content.value;
}