mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Whitespace tidy
This commit is contained in:
parent
ee8763bbf1
commit
3d4f0bb137
97 changed files with 555 additions and 555 deletions
|
@ -326,7 +326,7 @@ static void printValuePointer(const clivalue_t *var, const void *valuePointer, b
|
|||
break;
|
||||
}
|
||||
|
||||
switch(var->type & VALUE_MODE_MASK) {
|
||||
switch (var->type & VALUE_MODE_MASK) {
|
||||
case MODE_DIRECT:
|
||||
cliPrintf("%d", value);
|
||||
if (full) {
|
||||
|
@ -805,7 +805,7 @@ static void cliSerial(char *cmdline)
|
|||
break;
|
||||
}
|
||||
|
||||
switch(i) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
if (baudRateIndex < BAUD_9600 || baudRateIndex > BAUD_1000000) {
|
||||
continue;
|
||||
|
@ -859,7 +859,7 @@ static void cliSerialPassthrough(char *cmdline)
|
|||
int index = 0;
|
||||
|
||||
while (tok != NULL) {
|
||||
switch(index) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
id = atoi(tok);
|
||||
break;
|
||||
|
@ -1325,7 +1325,7 @@ static void cliModeColor(char *cmdline)
|
|||
int modeIdx = args[MODE];
|
||||
int funIdx = args[FUNCTION];
|
||||
int color = args[COLOR];
|
||||
if(!setModeColor(modeIdx, funIdx, color)) {
|
||||
if (!setModeColor(modeIdx, funIdx, color)) {
|
||||
cliShowParseError();
|
||||
return;
|
||||
}
|
||||
|
@ -2016,7 +2016,7 @@ static void cliBeeper(char *cmdline)
|
|||
if (len == 0) {
|
||||
cliPrintf("Disabled:");
|
||||
for (int32_t i = 0; ; i++) {
|
||||
if (i == beeperCount - 2){
|
||||
if (i == beeperCount - 2) {
|
||||
if (mask == 0)
|
||||
cliPrint(" none");
|
||||
break;
|
||||
|
@ -2126,7 +2126,7 @@ static void cliMap(char *cmdline)
|
|||
|
||||
static char *checkCommand(char *cmdLine, const char *command)
|
||||
{
|
||||
if(!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
||||
if (!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
||||
&& (isspace((unsigned)cmdLine[strlen(command)]) || cmdLine[strlen(command)] == 0)) {
|
||||
return cmdLine + strlen(command) + 1;
|
||||
} else {
|
||||
|
@ -2280,13 +2280,13 @@ static void cliEscPassthrough(char *cmdline)
|
|||
while (pch != NULL) {
|
||||
switch (pos) {
|
||||
case 0:
|
||||
if(strncasecmp(pch, "sk", strlen(pch)) == 0) {
|
||||
if (strncasecmp(pch, "sk", strlen(pch)) == 0) {
|
||||
mode = PROTOCOL_SIMONK;
|
||||
} else if(strncasecmp(pch, "bl", strlen(pch)) == 0) {
|
||||
} else if (strncasecmp(pch, "bl", strlen(pch)) == 0) {
|
||||
mode = PROTOCOL_BLHELI;
|
||||
} else if(strncasecmp(pch, "ki", strlen(pch)) == 0) {
|
||||
} else if (strncasecmp(pch, "ki", strlen(pch)) == 0) {
|
||||
mode = PROTOCOL_KISS;
|
||||
} else if(strncasecmp(pch, "cc", strlen(pch)) == 0) {
|
||||
} else if (strncasecmp(pch, "cc", strlen(pch)) == 0) {
|
||||
mode = PROTOCOL_KISSALL;
|
||||
} else {
|
||||
cliShowParseError();
|
||||
|
@ -3464,7 +3464,7 @@ void cliProcess(void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(cmd < cmdTable + ARRAYLEN(cmdTable))
|
||||
if (cmd < cmdTable + ARRAYLEN(cmdTable))
|
||||
cmd->func(options);
|
||||
else
|
||||
cliPrint("Unknown command, try 'help'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue