From c95547b910839ea746c3102a1a4151936989fa87 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 1 Jun 2020 13:28:02 +0200 Subject: [PATCH] Buffer sizes --- device.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/device.h b/device.h index 6c34ec1..e060705 100755 --- a/device.h +++ b/device.h @@ -26,8 +26,14 @@ // Serial settings #define SERIAL_DEBUG false #define TX_MAXWAIT 2UL -#define CONFIG_QUEUE_SIZE 5760 -#define CONFIG_QUEUE_MAX_LENGTH 32 + +// Queue settings. Don't be fooled by free +// memory indications while compiling! With +// dynamic allocations by SD, exFAT and AES, +// these are more or less the hard limit in +// the current configuration. +#define CONFIG_QUEUE_SIZE 5000 +#define CONFIG_QUEUE_MAX_LENGTH 15 #define CONFIG_UART0_BUFFER_SIZE 1536 #define CONFIG_UART1_BUFFER_SIZE 128 #define CONFIG_SERIAL_TIMEOUT_MS 10