From c4b26cefd21cd25dc4583aae02f4bfbda575e2c5 Mon Sep 17 00:00:00 2001 From: TXuian <1163589503@qq.com> Date: Sat, 10 Dec 2022 13:53:37 +0800 Subject: [PATCH] Fixing w5500. --- .../third_party_driver/ethernet/connect_w5500.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 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 67e250bd9..415f60cf1 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 @@ -343,14 +343,12 @@ void wiz_client_op_test(int argc, char *argv[]) { if (ret < 0) { KPrintf("[W5500] Client Op Failed.\n"); } - while (1) { // waiting for a responding. - ret = wiz_client_op(client_sock, recv_buf, g_wiznet_buf_size, ip, port, - RECV_DATA); - if (ret > 0) { - KPrintf("received msg: %s\n", recv_buf); - break; - } + ret = wiz_client_op(client_sock, recv_buf, g_wiznet_buf_size, ip, port, + RECV_DATA); + if (ret > 0) { + KPrintf("received msg: %s\n", recv_buf); + break; } }