Fixing w5500.
This commit is contained in:
parent
8602db9fae
commit
19cbf66e21
|
@ -331,13 +331,12 @@ 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 (1) {
|
||||
int ret = wiz_client_op(client_sock, send_buf, g_wiznet_buf_size, ip, port,
|
||||
SEND_DATA);
|
||||
if (ret < 0) {
|
||||
KPrintf("[W5500] Client Op Failed.\n");
|
||||
}
|
||||
MdelayKTask(200);
|
||||
while (1) {
|
||||
// waiting for a responding.
|
||||
ret = wiz_client_op(client_sock, recv_buf, g_wiznet_buf_size, ip, port,
|
||||
RECV_DATA);
|
||||
|
|
Loading…
Reference in New Issue