Ignore '\r' char in board_get

This commit is contained in:
2023-07-19 21:52:00 +01:00
parent 8848ad6833
commit d6081382bc
5 changed files with 15 additions and 7 deletions

View File

@@ -4085,7 +4085,7 @@ cmd_board_get(struct shell_ctx *ctx, int argc, char **argv) {
COVERAGE_ON();
c = umka_sys_board_get();
COVERAGE_OFF();
if (c.status) {
if (c.status && (c.value != '\r')) {
fputc(c.value, ctx->fout);
}
} while (c.status && ((c.value != '\n') || flush));