mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +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)
|
handle_fd(fd_set *rset, fd_set *wset)
|
||||||
{
|
{
|
||||||
if (FD_ISSET(sockfd, rset)) {
|
if (FD_ISSET(sockfd, rset)) {
|
||||||
int bytes = read(sockfd, sockbuf, 256);
|
int bytes = read(sockfd, sockbuf, MAX_PACKET_SIZE);
|
||||||
buflen = bytes;
|
buflen = bytes;
|
||||||
memcpy(packetbuf_dataptr(), sockbuf, bytes);
|
memcpy(packetbuf_dataptr(), sockbuf, bytes);
|
||||||
packetbuf_set_datalen(bytes);
|
packetbuf_set_datalen(bytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user