From 4173244dcc0b52a78576b945f0d8aea296a1f648 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 24 Sep 2024 21:47:22 +0100 Subject: [PATCH] common/tm4c/swo_uart: Cleaned up the packet write call in trace_buf_push() --- src/platforms/common/tm4c/swo_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/common/tm4c/swo_uart.c b/src/platforms/common/tm4c/swo_uart.c index 1fe72b6a962..f5279b888ce 100644 --- a/src/platforms/common/tm4c/swo_uart.c +++ b/src/platforms/common/tm4c/swo_uart.c @@ -126,7 +126,7 @@ void trace_buf_push(void) if (len > 64U) len = 64; - if (usbd_ep_write_packet(usbdev, USB_REQ_TYPE_IN | SWO_ENDPOINT, (uint8_t *)&buf_rx[buf_rx_out], len) == len) { + if (usbd_ep_write_packet(usbdev, SWO_ENDPOINT, (uint8_t *)&buf_rx[buf_rx_out], len) == len) { buf_rx_out += len; buf_rx_out %= FIFO_SIZE; }