mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Refactor USB serial ring buffer code
This commit is contained in:
parent
8b258bc2ad
commit
a3a3b74fd5
4 changed files with 97 additions and 139 deletions
|
@ -183,7 +183,7 @@ static serialPort_t *cliPort = NULL;
|
|||
|
||||
static bufWriter_t *cliWriter = NULL;
|
||||
static bufWriter_t *cliErrorWriter = NULL;
|
||||
static uint8_t cliWriteBuffer[sizeof(*cliWriter) + CLI_OUT_BUFFER_SIZE];
|
||||
static uint8_t cliWriteBuffer[sizeof(bufWriter_t) + CLI_OUT_BUFFER_SIZE];
|
||||
|
||||
static char cliBuffer[CLI_IN_BUFFER_SIZE];
|
||||
static uint32_t bufferIndex = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue