mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Fixed a bug which caused printing of floats larger than 100 in the CLI to crash
This commit is contained in:
parent
8e744e874c
commit
6ce8fe3c0f
3 changed files with 16 additions and 1 deletions
|
@ -2446,7 +2446,7 @@ static void cliWrite(uint8_t ch)
|
|||
static void cliPrintVar(const clivalue_t *var, uint32_t full)
|
||||
{
|
||||
int32_t value = 0;
|
||||
char buf[8];
|
||||
char buf[13];
|
||||
|
||||
void *ptr = var->ptr;
|
||||
if ((var->type & VALUE_SECTION_MASK) == PROFILE_VALUE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue