whitespace fixes in previous commit

This commit is contained in:
dongie 2013-11-07 22:12:28 +09:00
parent b7db6a04d1
commit b2f163d2ac
1 changed files with 0 additions and 5 deletions

View File

@ -875,9 +875,6 @@ static void cliPrintVar(const clivalue_t *var, uint32_t full)
printf(" %d %d", var->min, var->max);
}
static void cliSetVar(const clivalue_t *var, const int_float_value_t value)
{
switch (var->type) {
@ -931,12 +928,10 @@ static void cliSet(char *cmdline)
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?
int_float_value_t tmp;
if (valueTable[i].type == VAR_FLOAT)
tmp.float_value = valuef;
else
tmp.int_value = value;
cliSetVar(val, tmp);
printf("%s set to ", valueTable[i].name);
cliPrintVar(val, 0);