diff options
Diffstat (limited to 'cc3200/telnet/telnet.c')
-rw-r--r-- | cc3200/telnet/telnet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cc3200/telnet/telnet.c b/cc3200/telnet/telnet.c index 2f0818f6b..dbb77cd6d 100644 --- a/cc3200/telnet/telnet.c +++ b/cc3200/telnet/telnet.c @@ -29,6 +29,7 @@ #include "py/mpconfig.h" #include "py/obj.h" #include "py/mphal.h" +#include "lib/utils/interrupt_char.h" #include "telnet.h" #include "simplelink.h" #include "modnetwork.h" @@ -445,9 +446,9 @@ static void telnet_parse_input (uint8_t *str, int16_t *len) { for (uint8_t *_str = b_str; _str < b_str + b_len; ) { if (*_str <= 127) { - if (telnet_data.state == E_TELNET_STE_LOGGED_IN && *_str == user_interrupt_char) { + if (telnet_data.state == E_TELNET_STE_LOGGED_IN && *_str == mp_interrupt_char) { // raise a keyboard exception - mpexception_keyboard_nlr_jump(); + mp_keyboard_interrupt(); (*len)--; _str++; } |