summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/input.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-11-27 16:58:31 +0000
committerDamien George <damien.p.george@gmail.com>2014-11-27 16:58:31 +0000
commit5cbc9e0db0f01e1e643e8c091a536b54372df5bd (patch)
tree76d4375c28234440496278bdb937805f230715f0 /stmhal/input.c
parent6f5eb84c1959b7929824a881a0438d0eee23d31a (diff)
downloadmicropython-5cbc9e0db0f01e1e643e8c091a536b54372df5bd.tar.gz
micropython-5cbc9e0db0f01e1e643e8c091a536b54372df5bd.zip
stmhal: Reduce coupling between USB driver and readline.
This makes it easier to re-use readline.c and pyexec.c from stmhal in other ports.
Diffstat (limited to 'stmhal/input.c')
-rw-r--r--stmhal/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/input.c b/stmhal/input.c
index 7f3b17c6fe..9b67b641c6 100644
--- a/stmhal/input.c
+++ b/stmhal/input.c
@@ -41,7 +41,7 @@ STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) {
vstr_t line;
vstr_init(&line, 16);
int ret = readline(&line, "");
- if (line.len == 0 && ret == VCP_CHAR_CTRL_D) {
+ if (line.len == 0 && ret == CHAR_CTRL_D) {
nlr_raise(mp_obj_new_exception(&mp_type_EOFError));
}
mp_obj_t o = mp_obj_new_str(line.buf, line.len, false);