mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fixed args order
This commit is contained in:
parent
7869f4e151
commit
93a8510dc5
@ -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
|
// check if there're free memory to store this packet
|
||||||
uint16_t free_size = 0;
|
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_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
|
// 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");
|
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);
|
offset = __builtin_bswap16(offset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user