summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-23 00:05:38 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-23 00:05:38 +0300
commit77f0cd8027e0b460bc1cf0b78b40cf5fcbd75477 (patch)
tree60697115e0bb8e04434ddc668106ef2b61ec3560 /esp8266
parent4d4cfc2ee6dc84397b04bcc4855d730c221af661 (diff)
downloadmicropython-77f0cd8027e0b460bc1cf0b78b40cf5fcbd75477.tar.gz
micropython-77f0cd8027e0b460bc1cf0b78b40cf5fcbd75477.zip
esp8266: dupterm_task_init() should be called before running _boot.py, etc.
Because they may use dupterm functionality (e.g. WebREPL running on boot).
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c
index 21bb6e0e0f..71dfeb2ac6 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -60,6 +60,7 @@ STATIC void mp_reset(void) {
MP_STATE_PORT(dupterm_arr_obj) = MP_OBJ_NULL;
pin_init0();
readline_init0();
+ dupterm_task_init();
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("_boot.py");
pyexec_file("boot.py");
@@ -85,7 +86,6 @@ void init_done(void) {
#if MICROPY_REPL_EVENT_DRIVEN
pyexec_event_repl_init();
#endif
- dupterm_task_init();
#if !MICROPY_REPL_EVENT_DRIVEN
soft_reset: