diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-07-03 22:30:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-07-03 22:30:30 +0200 |
commit | 46893451deebdeeea3f6dd11c77278eb60f35d5c (patch) | |
tree | bb90c0b622d643b5858e64a9a2c4c29150cc88d1 /firmware | |
parent | cb6e20596e8b9927154428e97f5fb698237d291b (diff) |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/apps/cardem/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/apps/cardem/main.c b/firmware/apps/cardem/main.c index a80c498..2114901 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); } |