Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a1cf6cf

Browse files
committedSep 20, 2015
Fix CDC Serial buffer size determination
1 parent 66f74b8 commit a1cf6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎avr/cores/arduino/USBAPI.h

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.