mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Fixed CLI buffer defines.
This commit is contained in:
parent
53eb07c56a
commit
2b2894a96f
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue