From ecc0be0e666496bf03ff72e91a7d7d97e0046fd3 Mon Sep 17 00:00:00 2001 From: TXuian <1163589503@qq.com> Date: Sat, 10 Dec 2022 14:02:47 +0800 Subject: [PATCH] Fixing w5500. --- .../third_party_driver/ethernet/connect_w5500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/third_party_driver/ethernet/connect_w5500.c b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/third_party_driver/ethernet/connect_w5500.c index b9176586e..76f4d2b5c 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/third_party_driver/ethernet/connect_w5500.c +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/third_party_driver/ethernet/connect_w5500.c @@ -335,9 +335,7 @@ void wiz_client_op_test(int argc, char *argv[]) { memset(recv_buf, '\0', g_wiznet_buf_size); memcpy(send_buf, argv[3], strlen(argv[3])); KPrintf("[W5500 Client] BUFFER: %s\n", send_buf); - while (getSn_SR(client_sock) != SOCK_ESTABLISHED) { - wiz_client_op(client_sock, send_buf, strlen(send_buf), ip, port, SEND_DATA); - } + wiz_client_op(client_sock, send_buf, strlen(send_buf), ip, port, SEND_DATA); int ret = wiz_client_op(client_sock, send_buf, strlen(send_buf), ip, port, SEND_DATA); if (ret < 0) {