aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico <NicoHood@users.noreply.github.com>2015-09-20 11:08:49 +0200
committerNico <NicoHood@users.noreply.github.com>2015-09-20 11:08:49 +0200
commit7f2ca6ee281fe12e8f25e71cf59f561e81e63fd8 (patch)
treeb27e503902e06462e209857fafe8a1226e986292
parentedcfdba42da5a02b8af9152591999323260b4425 (diff)
Fix CDC Serial buffer size determination
-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