Merge pull request #3330 from mikeller/fixed_cli_buffers
Fixed CLI buffer defines.
This commit is contained in:
commit
0492925ff6
|
@ -128,17 +128,16 @@ static serialPort_t *cliPort;
|
||||||
|
|
||||||
#ifdef STM32F1
|
#ifdef STM32F1
|
||||||
#define CLI_IN_BUFFER_SIZE 128
|
#define CLI_IN_BUFFER_SIZE 128
|
||||||
#define CLI_OUT_BUFFER_SIZE 64
|
|
||||||
#else
|
#else
|
||||||
// Space required to set array parameters
|
// Space required to set array parameters
|
||||||
#define CLI_IN_BUFFER_SIZE 256
|
#define CLI_IN_BUFFER_SIZE 256
|
||||||
#define CLI_OUT_BUFFER_SIZE 256
|
|
||||||
#endif
|
#endif
|
||||||
|
#define CLI_OUT_BUFFER_SIZE 64
|
||||||
|
|
||||||
static bufWriter_t *cliWriter;
|
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 uint32_t bufferIndex = 0;
|
||||||
|
|
||||||
static bool configIsInCopy = false;
|
static bool configIsInCopy = false;
|
||||||
|
|
Loading…
Reference in New Issue