Skip to content

Commit 77f0cd8

Browse files
committed
esp8266: dupterm_task_init() should be called before running _boot.py, etc.
Because they may use dupterm functionality (e.g. WebREPL running on boot).
1 parent 4d4cfc2 commit 77f0cd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ STATIC void mp_reset(void) {
6060
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;
6161
pin_init0();
6262
readline_init0();
63+
dupterm_task_init();
6364
#if MICROPY_MODULE_FROZEN
6465
pyexec_frozen_module("_boot.py");
6566
pyexec_file("boot.py");
@@ -85,7 +86,6 @@ void init_done(void) {
8586
#if MICROPY_REPL_EVENT_DRIVEN
8687
pyexec_event_repl_init();
8788
#endif
88-
dupterm_task_init();
8989

9090
#if !MICROPY_REPL_EVENT_DRIVEN
9191
soft_reset:

0 commit comments

Comments
 (0)