From e2e03ced383feb5d5016344bfb18e66fbeab7ac5 Mon Sep 17 00:00:00 2001 From: Ondrej Kosta Date: Mon, 12 Feb 2024 10:36:29 +0100 Subject: [PATCH] fix(esp_eth): W5500 receive function to return copy_len --- components/esp_eth/src/esp_eth_mac_w5500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_eth/src/esp_eth_mac_w5500.c b/components/esp_eth/src/esp_eth_mac_w5500.c index 212590df0c..e682028d32 100644 --- a/components/esp_eth/src/esp_eth_mac_w5500.c +++ b/components/esp_eth/src/esp_eth_mac_w5500.c @@ -593,7 +593,7 @@ static esp_err_t emac_w5500_receive(esp_eth_mac_t *mac, uint8_t *buf, uint32_t * remain_bytes -= rx_len + 2; emac->packets_remain = remain_bytes > 0; - *length = rx_len; + *length = copy_len; return ret; err: *length = 0;