aboutsummaryrefslogtreecommitdiff
path: root/cc3200/telnet
diff options
context:
space:
mode:
authorDamien George2017-09-04 17:32:14 +1000
committerDamien George2017-09-04 17:32:14 +1000
commit689dae1211b4a3a6384a08ec2d7cdf2bb786d53a (patch)
tree487e0730ea4cd7b28f3cda8ade5c7d335ccbe3a7 /cc3200/telnet
parentab9d7619fcad204b7f7d303e1663f70fd3fffc6a (diff)
cc3200: Use standard implementation of keyboard interrupt.
Diffstat (limited to 'cc3200/telnet')
-rw-r--r--cc3200/telnet/telnet.c5
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++;
}