Skip to content

Commit 436d79c

Browse files
committed
Avoid optimization of CDC buffer size
1 parent fa8793e commit 436d79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/usb_cdc/usb_endp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef struct
7878
} packet_t;
7979

8080
static packet_t circ_buf[CIRC_BUF_SIZE];
81-
static uint8_t head, size, tail = CIRC_BUF_SIZE - 1;
81+
static volatile uint8_t head, size, tail = CIRC_BUF_SIZE - 1;
8282

8383
uint32_t USB_Data_Peek(uint8_t **data)
8484
{

0 commit comments

Comments
 (0)