summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-27 14:33:17 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-27 14:33:17 +0300
commit53302f16165dbbbfa665f1023720dfe4705d7fdc (patch)
tree646523f181105005293e1480ea937a1527fc3df7 /esp8266
parent651a18829932cbbf9bcd312f11cf40252dca7f1c (diff)
downloadmicropython-53302f16165dbbbfa665f1023720dfe4705d7fdc.tar.gz
micropython-53302f16165dbbbfa665f1023720dfe4705d7fdc.zip
esp8266: Set up UART handling task soon into init process.
Otherwise, events may be posted to non-initialized task, which leads to segfaults.
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 2046d12d6a..986be3a61c 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -62,10 +62,10 @@ void soft_reset(void) {
}
void init_done(void) {
+ uart_task_init();
mp_reset();
mp_hal_stdout_tx_str("\r\n");
pyexec_event_repl_init();
- uart_task_init();
}
void user_init(void) {