mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ethos: adapt for tsrb API type change
This commit is contained in:
parent
dfc8bbd96c
commit
31c49c58f1
@ -60,7 +60,7 @@ void ethos_setup(ethos_t *dev, const ethos_params_t *params)
|
|||||||
dev->last_framesize = 0;
|
dev->last_framesize = 0;
|
||||||
dev->accept_new = true;
|
dev->accept_new = true;
|
||||||
|
|
||||||
tsrb_init(&dev->inbuf, (char*)params->buf, params->bufsize);
|
tsrb_init(&dev->inbuf, params->buf, params->bufsize);
|
||||||
mutex_init(&dev->out_mutex);
|
mutex_init(&dev->out_mutex);
|
||||||
|
|
||||||
uint32_t a = random_uint32();
|
uint32_t a = random_uint32();
|
||||||
@ -127,7 +127,7 @@ static void _end_of_frame(ethos_t *dev)
|
|||||||
/* fall through */
|
/* fall through */
|
||||||
case ETHOS_FRAME_TYPE_HELLO_REPLY:
|
case ETHOS_FRAME_TYPE_HELLO_REPLY:
|
||||||
if (dev->framesize == 6) {
|
if (dev->framesize == 6) {
|
||||||
tsrb_get(&dev->inbuf, (char*)dev->remote_mac_addr, 6);
|
tsrb_get(&dev->inbuf, dev->remote_mac_addr, 6);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user