mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
Fixed inconsistent CR/LF so that the Configurator CLI code can be simplified.
This commit is contained in:
parent
d49390da22
commit
6de521fe21
1 changed files with 3 additions and 3 deletions
|
@ -1511,10 +1511,10 @@ static void cliSerialPassthrough(const char *cmdName, char *cmdline)
|
||||||
// leave the mode unchanged. serialPassthrough() handles one-way ports.
|
// leave the mode unchanged. serialPassthrough() handles one-way ports.
|
||||||
// Set the baud rate if specified
|
// Set the baud rate if specified
|
||||||
if (ports[i].baud) {
|
if (ports[i].baud) {
|
||||||
cliPrintf("Port%d is already open, setting baud = %d.\n\r", portIndex, ports[i].baud);
|
cliPrintf("Port%d is already open, setting baud = %d.\r\n", portIndex, ports[i].baud);
|
||||||
serialSetBaudRate(*port, ports[i].baud);
|
serialSetBaudRate(*port, ports[i].baud);
|
||||||
} else {
|
} else {
|
||||||
cliPrintf("Port%d is already open, baud = %d.\n\r", portIndex, (*port)->baudRate);
|
cliPrintf("Port%d is already open, baud = %d.\r\n", portIndex, (*port)->baudRate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ports[i].mode && (*port)->mode != ports[i].mode) {
|
if (ports[i].mode && (*port)->mode != ports[i].mode) {
|
||||||
|
@ -6545,7 +6545,7 @@ static void processCharacterInteractive(const char c)
|
||||||
}
|
}
|
||||||
if (!bufferIndex || pstart != pend) {
|
if (!bufferIndex || pstart != pend) {
|
||||||
/* Print list of ambiguous matches */
|
/* Print list of ambiguous matches */
|
||||||
cliPrint("\r\033[K");
|
cliPrint("\r\n\033[K");
|
||||||
for (cmd = pstart; cmd <= pend; cmd++) {
|
for (cmd = pstart; cmd <= pend; cmd++) {
|
||||||
cliPrint(cmd->name);
|
cliPrint(cmd->name);
|
||||||
cliWrite('\t');
|
cliWrite('\t');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue