Skip to content

Commit 441283c

Browse files
committed
fix(prodtest): remove extra crlf in response in non-interactive mode
1 parent e451adc commit 441283c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed the extra CRLF added to each response line in non-interactive mode.

core/embed/rtl/cli.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,11 @@ void cli_process_command(cli_t* cli, const cli_command_t* cmd) {
551551
cli_error(cli, CLI_ERROR_FATAL,
552552
"Command handler didn't finish properly.");
553553
}
554-
} else {
555-
// Finalize the last command with an empty line
556-
cli_printf(cli, "\r\n");
557554
}
558555

559556
if (cli->interactive) {
557+
// Finalize the last command with an empty line
558+
cli_printf(cli, "\r\n");
560559
// Print the prompt
561560
cli_printf(cli, "> ");
562561
}

0 commit comments

Comments
 (0)