Commit 26fae6c
committed
fix(console): use substring match for prompt detection
endswith() fails when the received data contains extra
characters after the prompt (e.g. trailing spaces or CR).
Use 'in' to match the prompt anywhere in the received line.
Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>1 parent 1c7c11f commit 26fae6c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments