Webserver Project: Fix RNDIS_Read_Packet() API usage to conform to the updated API.
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 19 Jun 2021 07:40:01 +0000 (17:40 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 19 Jun 2021 07:40:01 +0000 (17:40 +1000)
Projects/Webserver/Lib/uIPManagement.c

index a7bb127..dd6182a 100644 (file)
@@ -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
        {
@@ -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 */