mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
whitespace fixes in previous commit
This commit is contained in:
parent
b7db6a04d1
commit
b2f163d2ac
1 changed files with 0 additions and 5 deletions
|
@ -875,9 +875,6 @@ static void cliPrintVar(const clivalue_t *var, uint32_t full)
|
||||||
printf(" %d %d", var->min, var->max);
|
printf(" %d %d", var->min, var->max);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void cliSetVar(const clivalue_t *var, const int_float_value_t value)
|
static void cliSetVar(const clivalue_t *var, const int_float_value_t value)
|
||||||
{
|
{
|
||||||
switch (var->type) {
|
switch (var->type) {
|
||||||
|
@ -931,12 +928,10 @@ static void cliSet(char *cmdline)
|
||||||
if (strncasecmp(cmdline, valueTable[i].name, strlen(valueTable[i].name)) == 0) {
|
if (strncasecmp(cmdline, valueTable[i].name, strlen(valueTable[i].name)) == 0) {
|
||||||
if (valuef >= valueTable[i].min && valuef <= valueTable[i].max) { // here we compare the float value since... it should work, RIGHT?
|
if (valuef >= valueTable[i].min && valuef <= valueTable[i].max) { // here we compare the float value since... it should work, RIGHT?
|
||||||
int_float_value_t tmp;
|
int_float_value_t tmp;
|
||||||
|
|
||||||
if (valueTable[i].type == VAR_FLOAT)
|
if (valueTable[i].type == VAR_FLOAT)
|
||||||
tmp.float_value = valuef;
|
tmp.float_value = valuef;
|
||||||
else
|
else
|
||||||
tmp.int_value = value;
|
tmp.int_value = value;
|
||||||
|
|
||||||
cliSetVar(val, tmp);
|
cliSetVar(val, tmp);
|
||||||
printf("%s set to ", valueTable[i].name);
|
printf("%s set to ", valueTable[i].name);
|
||||||
cliPrintVar(val, 0);
|
cliPrintVar(val, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue