Skip to content

Commit

Permalink
Fixed inconsistent CR/LF so that the Configurator CLI code can be sim…
Browse files Browse the repository at this point in the history
…plified.
  • Loading branch information
MadQ committed Mar 30, 2020
1 parent d49390d commit 6de521f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/cli/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,10 +1511,10 @@ static void cliSerialPassthrough(const char *cmdName, char *cmdline)
// leave the mode unchanged. serialPassthrough() handles one-way ports.
// Set the baud rate if specified
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);
} 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) {
Expand Down Expand Up @@ -6545,7 +6545,7 @@ static void processCharacterInteractive(const char c)
}
if (!bufferIndex || pstart != pend) {
/* Print list of ambiguous matches */
cliPrint("\r\033[K");
cliPrint("\r\n\033[K");
for (cmd = pstart; cmd <= pend; cmd++) {
cliPrint(cmd->name);
cliWrite('\t');
Expand Down

0 comments on commit 6de521f

Please sign in to comment.