commit | 53302f16165dbbbfa665f1023720dfe4705d7fdc | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Mar 27 14:33:17 2016 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Mar 27 14:33:17 2016 +0300 |
tree | 646523f181105005293e1480ea937a1527fc3df7 | |
parent | 651a18829932cbbf9bcd312f11cf40252dca7f1c [diff] [blame] |
esp8266: Set up UART handling task soon into init process. Otherwise, events may be posted to non-initialized task, which leads to segfaults.
diff --git a/esp8266/main.c b/esp8266/main.c index 2046d12..986be3a 100644 --- a/esp8266/main.c +++ b/esp8266/main.c
@@ -62,10 +62,10 @@ } 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) {