From 2b2894a96f49e625b5730aceffafa8ef10296bc6 Mon Sep 17 00:00:00 2001 From: mikeller Date: Fri, 23 Jun 2017 00:43:45 +1200 Subject: [PATCH] Fixed CLI buffer defines. --- src/main/fc/cli.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/fc/cli.c b/src/main/fc/cli.c index 718007bd10..3508b89d63 100755 --- a/src/main/fc/cli.c +++ b/src/main/fc/cli.c @@ -128,17 +128,16 @@ static serialPort_t *cliPort; #ifdef STM32F1 #define CLI_IN_BUFFER_SIZE 128 -#define CLI_OUT_BUFFER_SIZE 64 #else // Space required to set array parameters #define CLI_IN_BUFFER_SIZE 256 -#define CLI_OUT_BUFFER_SIZE 256 #endif +#define CLI_OUT_BUFFER_SIZE 64 static bufWriter_t *cliWriter; -static uint8_t cliWriteBuffer[sizeof(*cliWriter) + CLI_IN_BUFFER_SIZE]; +static uint8_t cliWriteBuffer[sizeof(*cliWriter) + CLI_OUT_BUFFER_SIZE]; -static char cliBuffer[CLI_OUT_BUFFER_SIZE]; +static char cliBuffer[CLI_IN_BUFFER_SIZE]; static uint32_t bufferIndex = 0; static bool configIsInCopy = false;