Skip to content

Commit 5644d8f

Browse files
authored
Size the USB-JTAG RX buffer to hold a full Wire Protocol frame (#3525)
***NO_CI***
1 parent f37471b commit 5644d8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

targets/ESP32/_common/WireProtocol_HAL_Interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static uint8_t WP_TransmitMessageTinyUsb(WP_Message *message)
161161

162162
#include "driver/usb_serial_jtag.h"
163163

164-
#define USB_JTAG_BUFFER_SIZE 256
164+
#define USB_JTAG_BUFFER_SIZE (sizeof(WP_Packet) + WP_PACKET_SIZE)
165165

166166
static size_t UsbSerialWrite(const uint8_t *data, size_t dataSize, TickType_t xTicksToWait);
167167
static size_t UsbSerialRead(uint8_t *data, size_t dataSize, TickType_t xTicksToWait);

0 commit comments

Comments
 (0)