1
0
Fork 0
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:
Beaky2000 2016-04-17 22:09:49 +02:00
parent 8e744e874c
commit 6ce8fe3c0f
3 changed files with 16 additions and 1 deletions

View file

@ -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) {