Skip to content

Commit

Permalink
[WIRED] Fix crash at OoT boot
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Dec 8, 2023
1 parent 039eca2 commit 42921af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/adapter/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42921af

Please sign in to comment.