From b6f106d2dba94159b724e299f682ff0b1a5c85fe Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Mon, 12 Feb 2024 16:01:10 -0500 Subject: [PATCH] [ADAPTER] Fix LED getting change on HW2 when using N64 functions --- main/adapter/wireless/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/adapter/wireless/sw.c b/main/adapter/wireless/sw.c index dbf15d94..df0a228d 100644 --- a/main/adapter/wireless/sw.c +++ b/main/adapter/wireless/sw.c @@ -528,7 +528,7 @@ void sw_fb_from_generic(struct generic_fb *fb_data, struct bt_data *bt_data) { memset((void *)conf, 0, sizeof(*conf)); conf->subcmd = BT_HIDP_SW_SUBCMD_SET_LED; - conf->subcmd_data[0] = led_dev_id_map[bt_data->base.pids->id]; + conf->subcmd_data[0] = led_dev_id_map[bt_data->base.pids->out_idx]; if (fb_data->state) { memcpy((void *)conf->rumble, (void *)sw_rumble_on, sizeof(sw_rumble_on));