mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
sdio/example: fixed the essl return type issue
This commit is contained in:
parent
0b92a1b40d
commit
cff557ce07
@ -411,8 +411,8 @@ void job_fifo(essl_handle_t handle)
|
|||||||
const int wait_ms = 50;
|
const int wait_ms = 50;
|
||||||
int length = packet_len[i];
|
int length = packet_len[i];
|
||||||
ret = essl_send_packet(handle, send_buffer + pointer, length, wait_ms);
|
ret = essl_send_packet(handle, send_buffer + pointer, length, wait_ms);
|
||||||
if (ret == ESP_ERR_TIMEOUT) {
|
if (ret == ESP_ERR_TIMEOUT || ret == ESP_ERR_NOT_FOUND) {
|
||||||
ESP_LOGD(TAG, "several packets are expected to timeout.");
|
ESP_LOGD(TAG, "slave not ready to receive packet %d", i); // And there are several packets expected to timeout.
|
||||||
} else {
|
} else {
|
||||||
ESP_ERROR_CHECK(ret);
|
ESP_ERROR_CHECK(ret);
|
||||||
ESP_LOGI(TAG, "send packet length: %d", length);
|
ESP_LOGI(TAG, "send packet length: %d", length);
|
||||||
|
Loading…
Reference in New Issue
Block a user