Fixing w5500.

This commit is contained in:
TXuian 2022-12-10 12:53:08 +08:00
parent cc22e613b9
commit 015f812774
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ void wiz_client_op_test(int argc, char *argv[]) {
}
KPrintf("wiz client to %d.%d.%d.%d:%d\n", ip[0], ip[1], ip[2], ip[3], port);
uint8_t buf[g_wiznet_buf_size];
sscanf(argv[3], "%s", buf);
memcpy(buf, argv[3], len(argv[3]));
while (1) {
int ret =
wiz_client_op(client_sock, buf, g_wiznet_buf_size, ip, port, SEND_DATA);