mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'contrib/github_pr_10292' into 'master'
fix small bug when logging eth error (GitHub PR) Closes IDFGH-8869 See merge request espressif/esp-idf!21407
This commit is contained in:
commit
600788da6a
@ -470,7 +470,7 @@ static esp_err_t emac_w5500_transmit(esp_eth_mac_t *mac, uint8_t *buf, uint32_t
|
||||
// check if there're free memory to store this packet
|
||||
uint16_t free_size = 0;
|
||||
ESP_GOTO_ON_ERROR(w5500_get_tx_free_size(emac, &free_size), err, TAG, "get free size failed");
|
||||
ESP_GOTO_ON_FALSE(length <= free_size, ESP_ERR_NO_MEM, err, TAG, "free size (%d) < send length (%d)", length, free_size);
|
||||
ESP_GOTO_ON_FALSE(length <= free_size, ESP_ERR_NO_MEM, err, TAG, "free size (%d) < send length (%d)", free_size, length);
|
||||
// get current write pointer
|
||||
ESP_GOTO_ON_ERROR(w5500_read(emac, W5500_REG_SOCK_TX_WR(0), &offset, sizeof(offset)), err, TAG, "read TX WR failed");
|
||||
offset = __builtin_bswap16(offset);
|
||||
|
Loading…
x
Reference in New Issue
Block a user