1
0
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:
Martine Lenders 2019-06-05 13:19:33 +02:00
parent dfc8bbd96c
commit 31c49c58f1

View File

@ -60,7 +60,7 @@ void ethos_setup(ethos_t *dev, const ethos_params_t *params)
dev->last_framesize = 0;
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);
uint32_t a = random_uint32();
@ -127,7 +127,7 @@ static void _end_of_frame(ethos_t *dev)
/* fall through */
case ETHOS_FRAME_TYPE_HELLO_REPLY:
if (dev->framesize == 6) {
tsrb_get(&dev->inbuf, (char*)dev->remote_mac_addr, 6);
tsrb_get(&dev->inbuf, dev->remote_mac_addr, 6);
}
break;
}