Skip to content

Commit

Permalink
Merge branch 'bugfix/w5500_copy_len_v4.4' into 'release/v4.4'
Browse files Browse the repository at this point in the history
fix(esp_eth): W5500 receive function to return copy_len (v4.4)

See merge request espressif/esp-idf!29022
  • Loading branch information
david-cermak committed Feb 23, 2024
2 parents f327ddf + e2e03ce commit 1db39df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_eth/src/esp_eth_mac_w5500.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1db39df

Please sign in to comment.