mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Using MAX_PACKET_SIZE where appropriate in linuxradiodrv
This commit is contained in:
parent
beef4f5d5d
commit
5fed4a3f1c
@ -144,7 +144,7 @@ static void
|
||||
handle_fd(fd_set *rset, fd_set *wset)
|
||||
{
|
||||
if (FD_ISSET(sockfd, rset)) {
|
||||
int bytes = read(sockfd, sockbuf, 256);
|
||||
int bytes = read(sockfd, sockbuf, MAX_PACKET_SIZE);
|
||||
buflen = bytes;
|
||||
memcpy(packetbuf_dataptr(), sockbuf, bytes);
|
||||
packetbuf_set_datalen(bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user