From 46893451deebdeeea3f6dd11c77278eb60f35d5c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 3 Jul 2018 22:30:30 +0200 Subject: [PATCH] echo all command characters entered on serial console This is required to make python pexpect.fdexpect happy, as it requires that all characters are echo-ed back in order to detect when the output of a given command starts. Change-Id: I73b24e43f6c8b86a2766aba67d8307c184448aa0 --- firmware/apps/cardem/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/apps/cardem/main.c b/firmware/apps/cardem/main.c index a80c4986..21149019 100644 --- a/firmware/apps/cardem/main.c +++ b/firmware/apps/cardem/main.c @@ -108,6 +108,8 @@ static void check_exec_dbg_cmd(void) return; ch = UART_GetChar(); + /* We must echo the character to make python fdexpect happy, whcih we use in factory testing */ + fputc(ch, stdout); board_exec_dbg_cmd(ch); }