esp8266: dupterm_task_init() should be called before running _boot.py, etc.
Because they may use dupterm functionality (e.g. WebREPL running on boot).
This commit is contained in:
parent
4d4cfc2ee6
commit
77f0cd8027
|
@ -60,6 +60,7 @@ STATIC void mp_reset(void) {
|
||||||
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;
|
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;
|
||||||
pin_init0();
|
pin_init0();
|
||||||
readline_init0();
|
readline_init0();
|
||||||
|
dupterm_task_init();
|
||||||
#if MICROPY_MODULE_FROZEN
|
#if MICROPY_MODULE_FROZEN
|
||||||
pyexec_frozen_module("_boot.py");
|
pyexec_frozen_module("_boot.py");
|
||||||
pyexec_file("boot.py");
|
pyexec_file("boot.py");
|
||||||
|
@ -85,7 +86,6 @@ void init_done(void) {
|
||||||
#if MICROPY_REPL_EVENT_DRIVEN
|
#if MICROPY_REPL_EVENT_DRIVEN
|
||||||
pyexec_event_repl_init();
|
pyexec_event_repl_init();
|
||||||
#endif
|
#endif
|
||||||
dupterm_task_init();
|
|
||||||
|
|
||||||
#if !MICROPY_REPL_EVENT_DRIVEN
|
#if !MICROPY_REPL_EVENT_DRIVEN
|
||||||
soft_reset:
|
soft_reset:
|
||||||
|
|
Loading…
Reference in New Issue