From 99966e20ade7ba9b103c748feec8f1bf4c58e0da Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 19 Aug 2018 12:16:36 -0300 Subject: [PATCH] Reduce buffer sizes for Teensy 3.2/3.1 --- Globals.h | 2 +- SerialRB.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Globals.h b/Globals.h index a44e8881..c082d606 100644 --- a/Globals.h +++ b/Globals.h @@ -97,7 +97,7 @@ const uint16_t RX_BLOCK_SIZE = 2U; const uint16_t TX_RINGBUFFER_SIZE = 500U; const uint16_t RX_RINGBUFFER_SIZE = 600U; -#if defined(STM32F105xC) +#if defined(STM32F105xC) || defined(__MK20DX256__) const uint16_t TX_BUFFER_LEN = 2000U; #else const uint16_t TX_BUFFER_LEN = 4000U; diff --git a/SerialRB.h b/SerialRB.h index a2ccb8ba..ee244d22 100644 --- a/SerialRB.h +++ b/SerialRB.h @@ -32,7 +32,7 @@ Boston, MA 02110-1301, USA. #include #endif -#if defined(STM32F105xC) +#if defined(STM32F105xC) || defined(__MK20DX256__) const uint16_t SERIAL_RINGBUFFER_SIZE = 370U; #else const uint16_t SERIAL_RINGBUFFER_SIZE = 1000U;