mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Increased buffer size.
This commit is contained in:
parent
a5b428ae4f
commit
f65249e137
1 changed files with 14 additions and 4 deletions
|
@ -124,10 +124,20 @@ extern uint8_t __config_end;
|
|||
|
||||
|
||||
static serialPort_t *cliPort;
|
||||
static bufWriter_t *cliWriter;
|
||||
static uint8_t cliWriteBuffer[sizeof(*cliWriter) + 128];
|
||||
|
||||
static char cliBuffer[64];
|
||||
#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
|
||||
|
||||
static bufWriter_t *cliWriter;
|
||||
static uint8_t cliWriteBuffer[sizeof(*cliWriter) + CLI_IN_BUFFER_SIZE];
|
||||
|
||||
static char cliBuffer[CLI_OUT_BUFFER_SIZE];
|
||||
static uint32_t bufferIndex = 0;
|
||||
|
||||
static bool configIsInCopy = false;
|
||||
|
@ -299,7 +309,7 @@ static void printValuePointer(const clivalue_t *var, const void *valuePointer, b
|
|||
|
||||
cliPrintf("%d", value);
|
||||
if (i < var->config.array.length - 1) {
|
||||
cliPrint(", ");
|
||||
cliPrint(",");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue