From 15e53cac2b539b54418a622697838c7f89f104d0 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Sun, 15 Oct 2023 00:06:52 -0400 Subject: [PATCH] [MACRO] Fix source controller index --- main/adapter/adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/adapter/adapter.c b/main/adapter/adapter.c index 8547f037..46b4bc00 100644 --- a/main/adapter/adapter.c +++ b/main/adapter/adapter.c @@ -373,6 +373,7 @@ void adapter_bridge(struct bt_data *bt_data) { #endif adapter_debug_wired_print(&ctrl_output[0]); #endif + ctrl_output[bt_data->base.pids->out_idx].index = bt_data->base.pids->out_idx; sys_macro_hdl(&ctrl_output[bt_data->base.pids->out_idx], &bt_data->base.flags[PAD]); for (uint32_t i = 0; out_mask; i++, out_mask >>= 1) { if (out_mask & 0x1) {