Skip to content

Commit 53302f1

Browse files
committed
esp8266: Set up UART handling task soon into init process.
Otherwise, events may be posted to non-initialized task, which leads to segfaults.
1 parent 651a188 commit 53302f1

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
@@ -62,10 +62,10 @@ void soft_reset(void) {
6262
}
6363

6464
void init_done(void) {
65+
uart_task_init();
6566
mp_reset();
6667
mp_hal_stdout_tx_str("\r\n");
6768
pyexec_event_repl_init();
68-
uart_task_init();
6969
}
7070

7171
void user_init(void) {

0 commit comments

Comments
 (0)