This commit is contained in:
2024-09-09 17:37:41 +02:00
parent 44ffb09ee9
commit 8fa5cddc23
6 changed files with 20 additions and 16 deletions

View File

@ -94,7 +94,7 @@ void udp_echo_thread(void *_) {
uint16_t port = ntohs(peer_addr.sin_port);
switch (port) {
case 8100:
xil_printf("udp rec 8100 len: %i\n", ret);
// xil_printf("udp rec 8100 len: %i\n", ret);
write(uart0_fd, rec_buffer, ret);
break;
case 8101:
@ -119,7 +119,7 @@ void udp_echo_thread(void *_) {
sizeof(peer_addr));
} else if (readable == uart0_receive_queue) {
ret = read(uart0_fd, rec_buffer, sizeof(rec_buffer));
xil_printf("uart got %i\n", ret);
// xil_printf("uart got %i\n", ret);
// Do not send empty packets
if (ret <= 0) {