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; } }