From 5514cee4800da7de2cc5e48e287a8bde03d30b26 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Mon, 1 Aug 2022 19:47:30 +0800 Subject: [PATCH] sdio/example: fixed the essl return type issue --- examples/peripherals/sdio/host/main/app_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/peripherals/sdio/host/main/app_main.c b/examples/peripherals/sdio/host/main/app_main.c index 8ba73932a5..79e951cbfe 100644 --- a/examples/peripherals/sdio/host/main/app_main.c +++ b/examples/peripherals/sdio/host/main/app_main.c @@ -411,8 +411,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);