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:
parent
3d1acc974e
commit
00ebb4b2ed
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user