diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-27 14:33:17 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-27 14:33:17 +0300 |
commit | 53302f16165dbbbfa665f1023720dfe4705d7fdc (patch) | |
tree | 646523f181105005293e1480ea937a1527fc3df7 /esp8266 | |
parent | 651a18829932cbbf9bcd312f11cf40252dca7f1c (diff) | |
download | micropython-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.c | 2 |
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) { |