Skip to content

Commit

Permalink
[ADAPTER] Fix LED getting change on HW2 when using N64 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Feb 12, 2024
1 parent 56ed945 commit b6f106d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/adapter/wireless/sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b6f106d

Please sign in to comment.