mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
warnings fixes by gke
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@104 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
ef0f756c7b
commit
aae8ef4c3d
10 changed files with 29 additions and 28 deletions
8
cli.c
8
cli.c
|
@ -55,9 +55,9 @@ static void cliHelp(char *cmdline)
|
|||
uartPrint("Available commands:\r\n");
|
||||
|
||||
for (i = 0; i < CMD_COUNT; i++) {
|
||||
uartPrint((uint8_t *)cmdTable[i].name);
|
||||
uartPrint(cmdTable[i].name);
|
||||
uartWrite(' ');
|
||||
uartPrint((uint8_t *)cmdTable[i].param);
|
||||
uartPrint(cmdTable[i].param);
|
||||
uartPrint("\r\n");
|
||||
}
|
||||
}
|
||||
|
@ -117,10 +117,10 @@ void cliProcess(void)
|
|||
if (bufferIndex > 1) {
|
||||
cliBuffer[bufferIndex - 2] = 0;
|
||||
uartPrint("\r# ");
|
||||
uartPrint((uint8_t *)cliBuffer);
|
||||
uartPrint(cliBuffer);
|
||||
uartWrite(' ');
|
||||
uartPrint("\r# ");
|
||||
uartPrint((uint8_t *)cliBuffer);
|
||||
uartPrint(cliBuffer);
|
||||
bufferIndex -= 2;
|
||||
}
|
||||
} else if (c < 32 || c > 126) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue