From 42921af13e7442421587950b4d3b2c0c75dad143 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Thu, 7 Dec 2023 19:21:46 -0500 Subject: [PATCH] [WIRED] Fix crash at OoT boot --- main/adapter/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/adapter/adapter.c b/main/adapter/adapter.c index 46b4bc00..4fd33fd5 100644 --- a/main/adapter/adapter.c +++ b/main/adapter/adapter.c @@ -407,7 +407,7 @@ void adapter_fb_stop_timer_stop(uint8_t dev_id) { uint32_t adapter_bridge_fb(struct raw_fb *fb_data, struct bt_data *bt_data) { uint32_t ret = 0; #ifndef CONFIG_BLUERETRO_ADAPTER_RUMBLE_DBG - if (wired_adapter.system_id != WIRED_AUTO) { + if (wired_adapter.system_id != WIRED_AUTO && bt_data && bt_data->base.pids) { wired_fb_to_generic(config.out_cfg[bt_data->base.pids->id].dev_mode, fb_data, &fb_input); #else fb_input.state ^= 0x01;