Fixing w5500.
This commit is contained in:
parent
8eaf2d3f90
commit
ecc0be0e66
|
@ -335,9 +335,7 @@ void wiz_client_op_test(int argc, char *argv[]) {
|
||||||
memset(recv_buf, '\0', g_wiznet_buf_size);
|
memset(recv_buf, '\0', g_wiznet_buf_size);
|
||||||
memcpy(send_buf, argv[3], strlen(argv[3]));
|
memcpy(send_buf, argv[3], strlen(argv[3]));
|
||||||
KPrintf("[W5500 Client] BUFFER: %s\n", send_buf);
|
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,
|
int ret = wiz_client_op(client_sock, send_buf, strlen(send_buf), ip, port,
|
||||||
SEND_DATA);
|
SEND_DATA);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
Loading…
Reference in New Issue