Merge branch 'feat/essl_extra_component_v4.1' into 'release/v4.1'

sdio/example: fixed the essl return value issue (v4.1)

See merge request espressif/esp-idf!20348
This commit is contained in:
Michael (XIAO Xufeng) 2022-10-14 16:19:41 +08:00
commit c5dfaec6b3

View File

@ -390,8 +390,8 @@ void job_fifo(essl_handle_t handle)
const int wait_ms = 50;
int length = packet_len[i];
ret = essl_send_packet(handle, send_buffer + pointer, length, wait_ms);
if (ret == ESP_ERR_TIMEOUT) {
ESP_LOGD(TAG, "several packets are expected to timeout.");
if (ret == ESP_ERR_TIMEOUT || ret == ESP_ERR_NOT_FOUND) {
ESP_LOGD(TAG, "slave not ready to receive packet %d", i); // And there are several packets expected to timeout.
} else {
ESP_ERROR_CHECK(ret);
ESP_LOGI(TAG, "send packet length: %d", length);