Skip to content

Commit b66e707

Browse files
committed
Align with Version 1.6.5
Update to match Version 1.6.5.
1 parent 58579f5 commit b66e707

File tree

1 file changed

+5
-0
lines changed
  • hardware/arduino/avr/cores/arduino

1 file changed

+5
-0
lines changed

hardware/arduino/avr/cores/arduino/USBAPI.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@ extern USBDevice_ USBDevice;
5959

6060
struct ring_buffer;
6161

62+
#ifndef SERIAL_BUFFER_SIZE
6263
#if (RAMEND < 1000)
6364
#define SERIAL_BUFFER_SIZE 16
6465
#else
6566
#define SERIAL_BUFFER_SIZE 64
6667
#endif
68+
#endif
69+
#if (SERIAL_BUFFER_SIZE>256)
70+
#error Please lower the CDC Buffer size
71+
#endif
6772

6873
class Serial_ : public Stream
6974
{

0 commit comments

Comments
 (0)