aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBAPI.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-21 12:03:26 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-09-21 12:03:26 +0200
commit987b9bf2a86ba7dfa8c8c24128e19e2048a837b8 (patch)
tree88666c42fc15e328aafb5cef3f0ae1e8b5d65e19 /cores/arduino/USBAPI.h
parent2453337d85e6eb07a7287c8d09adf9afb1bf13ca (diff)
parent7f2ca6ee281fe12e8f25e71cf59f561e81e63fd8 (diff)
Merge branch 'patch-7' of https://github.com/NicoHood/Arduino
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r--cores/arduino/USBAPI.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index 4072772..f22ab6a 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -75,7 +75,7 @@ extern USBDevice_ USBDevice;
struct ring_buffer;
#ifndef SERIAL_BUFFER_SIZE
-#if (RAMEND < 1000)
+#if ((RAMEND - RAMSTART) < 1023)
#define SERIAL_BUFFER_SIZE 16
#else
#define SERIAL_BUFFER_SIZE 64