mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-19 06:15:14 +03:00
CLI: null values should give invalid value, not 0
This commit is contained in:
parent
d93abe9475
commit
032b38d7f5
1 changed files with 1 additions and 1 deletions
|
@ -2396,7 +2396,7 @@ static void cliSet(char *cmdline)
|
|||
int_float_value_t tmp;
|
||||
switch (valueTable[i].type & VALUE_MODE_MASK) {
|
||||
case MODE_DIRECT: {
|
||||
if(strspn(eqptr, "0123456789.+-") == strlen(eqptr)) {
|
||||
if(strlen(eqptr) > 0 && strspn(eqptr, "0123456789.+-") == strlen(eqptr)) {
|
||||
int32_t value = 0;
|
||||
float valuef = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue