Skip to content

Commit

Permalink
common/tm4c/swo_uart: Cleaned up the packet write call in trace_buf_p…
Browse files Browse the repository at this point in the history
…ush()
  • Loading branch information
dragonmux committed Oct 3, 2024
1 parent b022cdb commit 4173244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/common/tm4c/swo_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4173244

Please sign in to comment.