Skip to content

Commit

Permalink
Webserver Project: Fix RNDIS_Read_Packet() API usage to conform to th…
Browse files Browse the repository at this point in the history
…e updated API.
  • Loading branch information
abcminiuser committed Jun 19, 2021
1 parent d6ba049 commit 8a78554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Webserver/Lib/uIPManagement.c
Expand Up @@ -174,7 +174,7 @@ static void uIPManagement_ProcessIncomingPacket(void)
LEDs_SetAllLEDs(LEDMASK_USB_BUSY);

/* Read the Incoming packet straight into the UIP packet buffer */
RNDIS_Device_ReadPacket(&Ethernet_RNDIS_Interface_Device, uip_buf, &uip_len);
RNDIS_Device_ReadPacket(&Ethernet_RNDIS_Interface_Device, uip_buf, UIP_BUFSIZE, &uip_len);
}
else
{
Expand All @@ -185,7 +185,7 @@ static void uIPManagement_ProcessIncomingPacket(void)
LEDs_SetAllLEDs(LEDMASK_USB_BUSY);

/* Read the Incoming packet straight into the UIP packet buffer */
RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface_Host, uip_buf, &uip_len);
RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface_Host, uip_buf, UIP_BUFSIZE, &uip_len);
}

/* If the packet contains an Ethernet frame, process it */
Expand Down

0 comments on commit 8a78554

Please sign in to comment.