mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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.
This commit is contained in:
committed by
Paul Sokolovsky
parent
98af891610
commit
4b597a1c1a
@@ -52,6 +52,7 @@ STATIC void mp_reset(void) {
|
||||
memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount)));
|
||||
#endif
|
||||
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
|
||||
pyexec_frozen_module("boot");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user