Skip to content
Snippets Groups Projects
Commit 4b597a1c authored by Damien George's avatar Damien George Committed by Paul Sokolovsky
Browse files

esp8266: Reset term_obj on reboot.

Also, term_obj can be NULL if socket enables REPL duplication signalling
before os.dupterm is called, so it should be checked.
parent 98af8916
Branches
Tags
No related merge requests found
...@@ -52,6 +52,7 @@ STATIC void mp_reset(void) { ...@@ -52,6 +52,7 @@ STATIC void mp_reset(void) {
memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount))); memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount)));
#endif #endif
MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt); MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
MP_STATE_PORT(term_obj) = MP_OBJ_NULL;
#if MICROPY_MODULE_FROZEN #if MICROPY_MODULE_FROZEN
pyexec_frozen_module("boot"); pyexec_frozen_module("boot");
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment