mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
Merge branch 'bugfix/w5500_copy_len_v4.4' into 'release/v4.4'
fix(esp_eth): W5500 receive function to return copy_len (v4.4) See merge request espressif/esp-idf!29022
This commit is contained in:
@@ -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;
|
remain_bytes -= rx_len + 2;
|
||||||
emac->packets_remain = remain_bytes > 0;
|
emac->packets_remain = remain_bytes > 0;
|
||||||
|
|
||||||
*length = rx_len;
|
*length = copy_len;
|
||||||
return ret;
|
return ret;
|
||||||
err:
|
err:
|
||||||
*length = 0;
|
*length = 0;
|
||||||
|
Reference in New Issue
Block a user