Skip to content

Commit

Permalink
Replace numeric value with defined preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Oct 12, 2022
1 parent c8c0395 commit 0e47710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/EFR32/wifi/ethernetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ static void low_level_input(struct netif * netif, uint8_t * b, uint16_t len)
{
return;
}
if (len < 60)
if (len < LWIP_FRAME_ALIGNMENT)
{ /* 60 : LWIP frame alignment */
len = 60;
len = LWIP_FRAME_ALIGNMENT;
}
/* We allocate a pbuf chain of pbufs from the Lwip buffer pool
* and copy the data to the pbuf chain
Expand Down

0 comments on commit 0e47710

Please sign in to comment.