Skip to content

Commit

Permalink
[MAIN] Move wired rtos init after BT init
Browse files Browse the repository at this point in the history
This give some time for the bare core to init the system var.
  • Loading branch information
darthcloud committed Sep 30, 2023
1 parent 20c2677 commit 4589095
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();

Expand Down

0 comments on commit 4589095

Please sign in to comment.