fix(esp_eth): W5500 receive function to return copy_len

This commit is contained in:
Ondrej Kosta
2024-02-12 10:36:29 +01:00
parent b2146b8aa3
commit e2e03ced38

View File

@ -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;