From 0e477102b2c2aea6e2f04b27419fef60af2ca121 Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Wed, 12 Oct 2022 14:42:18 +0530 Subject: [PATCH] Replace numeric value with defined preprocessor --- src/platform/EFR32/wifi/ethernetif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/EFR32/wifi/ethernetif.cpp b/src/platform/EFR32/wifi/ethernetif.cpp index 52e72b26368c02..8f811d5abea150 100644 --- a/src/platform/EFR32/wifi/ethernetif.cpp +++ b/src/platform/EFR32/wifi/ethernetif.cpp @@ -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