Skip to content

Commit 7f2ca6e

Browse files
committed
Fix CDC Serial buffer size determination
1 parent edcfdba commit 7f2ca6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USBAPI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extern USBDevice_ USBDevice;
7575
struct ring_buffer;
7676

7777
#ifndef SERIAL_BUFFER_SIZE
78-
#if (RAMEND < 1000)
78+
#if ((RAMEND - RAMSTART) < 1023)
7979
#define SERIAL_BUFFER_SIZE 16
8080
#else
8181
#define SERIAL_BUFFER_SIZE 64

0 commit comments

Comments
 (0)