From 4589095761705b65565603f5a797e887d00d7663 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Fri, 29 Sep 2023 21:09:36 -0400 Subject: [PATCH] [MAIN] Move wired rtos init after BT init This give some time for the bare core to init the system var. --- main/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/main.c b/main/main.c index a199685c..de7da9c2 100644 --- a/main/main.c +++ b/main/main.c @@ -97,10 +97,6 @@ static void wl_init_task(void *arg) { config_init(DEFAULT_CFG); - if (wired_adapter.system_id < WIRED_MAX) { - wired_rtos_init(); - } - #ifndef CONFIG_BLUERETRO_BT_DISABLE if (bt_host_init()) { err_led_set(); @@ -109,6 +105,10 @@ static void wl_init_task(void *arg) { } #endif + if (wired_adapter.system_id < WIRED_MAX) { + wired_rtos_init(); + } + #ifndef CONFIG_BLUERETRO_QEMU mc_init();