Skip to content

Commit

Permalink
sdio/example: fixed the essl return type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ginkgm committed Sep 26, 2022
1 parent 02a9de9 commit f21f0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/peripherals/sdio/host/main/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,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);
Expand Down

0 comments on commit f21f0ac

Please sign in to comment.